Skip to content

Commit e6a3ffb

Browse files
Possible fix for build workflow and immutable releases pt.7
1 parent 0480f0d commit e6a3ffb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ jobs:
2929
path: build/*/*.zip
3030
- name: Upload build
3131
if: startsWith(github.ref, 'refs/tags/')
32-
run: gh release upload ${{ github.ref_name }} build/*/*.zip --clobber
32+
run: |
33+
awk '/^## ${{ github.ref_name }}/{flag=1; next} /^## v/{flag=0} flag' CHANGELOG.md | sed 's/^### /## /' > release_notes.md
34+
gh release create ${{ github.ref_name }} build/*/*.zip --title ${{ github.ref_name }} --notes-file release_notes.md
3335
env:
3436
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3537

0 commit comments

Comments
 (0)