Skip to content

Commit

Permalink
fixup! add release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
irkode committed Aug 21, 2024
1 parent 8de2e8d commit 74827a4
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,21 +78,19 @@ jobs:
Get-ChildItem .\assets | Out-Host
Write-Error "Aborting - please check"
}
Remove-Item $BulmaRelease.archive -ErrorAction SilentlyContinue
[void](Test-Path $BulmaRelease.archive -ErrorAction Stop)
echo "BULMA_RELEASE=$($BulmaRelease.release)" | Out-File $Env:GITHUB_ENV -Append -Encoding utf8
echo "BULMA_ARCHIVE=$($BulmaRelease.archive)" | Out-File $Env:GITHUB_ENV -Append -Encoding utf8
Write-Output "download successful: $($BulmaRelease.archive)"
"## This release contains the following style files:\n\n- CSS\n\n" | Set-Content -encoding utf8 notes.md
Get-ChildItem -Path .\assets\bulma -filter "*.css" -recurse | Resolve-Path -Relative | %{ " - $_\n" | Add-Content -encoding utf8 notes.md }
"\n- SASS\n\n" | Add-Content -encoding utf8 notes.md
Get-ChildItem -Path .\assets\bulma -filter "*.css" -recurse | Resolve-Path -Relative | %{ " - $_\n" | Add-Content -encoding utf8 notes.md }
"\n More details on the [official release page](https://github.com/jgthms/bulma/releases/tag/$($BulmaRelease.release)\n" | Add-Content -encoding utf8 notes.md
$notes = @("## This release contains the following style files:`n", "- CSS`n")
$notes += Get-ChildItem -Path .\assets\bulma -filter "*.css" -recurse | Resolve-Path -Relative | %{ " - $_" }
$notes += "`n - SASS`n "
$notes += Get-ChildItem -Path .\assets\bulma -filter "*.sass" | Resolve-Path -Relative | %{ " - $_" }
$notes += "Release details on the [official release page](https://github.com/jgthms/bulma/releases/tag/$($BulmaRelease.release)"
$notes | Set-Content -encoding utf8 notes.md
Get-Content notes.md
} else {
Write-Output "No new Bulma Version found to pack"
}
throw "OOPS"
- name: Create Release
if: ${{ env.BULMA_RELEASE }}
run: |
Expand All @@ -107,7 +105,6 @@ jobs:
# git tag -a "v$BulmaRelease" -m "packed Bulma release $BulmaRelease"
# git push --tags
git checkout main
gh auth login
gh release create "v$BulmaRelease" --title "Bulma4Hugo v$BulmaRelease" --target $bulmaBranch --latest
git branch -D $bulmaBranch
git push origin --delete $bulmaBranch

0 comments on commit 74827a4

Please sign in to comment.