fix: make release publish atomic to prevent update 404s (#112)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Neil 2026-03-26 00:02:31 -07:00 committed by GitHub
parent c04275a5f2
commit 27b29a0f8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,8 +14,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Create release with auto-generated notes
run: gh release create ${{ github.ref_name }} --generate-notes --prerelease=${{ contains(github.ref_name, 'rc') }}
- name: Create draft release with auto-generated notes
run: gh release create ${{ github.ref_name }} --draft --generate-notes --prerelease=${{ contains(github.ref_name, 'rc') }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -77,3 +77,14 @@ jobs:
run: pnpm build:linux --publish always
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish-release:
needs: release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Publish release
run: gh release edit ${{ github.ref_name }} --draft=false --repo ${{ github.repository }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}