Skip to content

Commit

Permalink
>>>>
Browse files Browse the repository at this point in the history
  • Loading branch information
rindeal committed Mar 17, 2024
1 parent 946a002 commit 8273e86
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
- name: Create draft release
env: { GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" }
run: >
gh release create "${{ github.sha }}"
gh release create "${{ github.ref_name }}"
--title "amalgamate ${{ github.ref_name }}"
--draft
--generate-notes
--notes-start-tag 0.4.0
--verify-tag
source:
needs: [ draft ]
Expand All @@ -39,7 +39,7 @@ jobs:

- name: Upload assets
env: { GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" }
run: gh release upload --clobber "${{ github.sha }}" ${archives}
run: gh release upload --clobber "${{ github.ref_name }}" ${archives}

linux_macos:
needs: [ draft ]
Expand All @@ -54,7 +54,7 @@ jobs:

- name: Create and upload assets
env: { GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" }
run: make gh-upload REL_VER="${{ github.ref_name }}" GH_TAG="${{ github.sha }}"
run: make gh-upload REL_VER="${{ github.ref_name }}" GH_TAG="${{ github.ref_name }}"

windows:
needs: [ draft ]
Expand All @@ -75,7 +75,7 @@ jobs:

- name: Upload assets
env: { GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" }
run: gh release upload --clobber "${{ github.sha }}" "${env:archive}"
run: gh release upload --clobber "${{ github.ref_name }}" "${env:archive}"

finish:
needs: [ linux_macos, windows, source ]
Expand All @@ -95,5 +95,4 @@ jobs:
echo "**bar** _baz_" >> notes.md
echo >> notes.md
cat autogen-notes.md >> notes.md
gh release edit --draft=false --notes-file notes.md "temptag-${{ github.run_id }}"
git push --delete origin "temptag-${{ github.run_id }}"
gh release edit --draft=false --notes-file notes.md "${{ github.ref_name }}"

0 comments on commit 8273e86

Please sign in to comment.