Skip to content

Commit fa589d2

Browse files
GeneAIclaude
andcommitted
fix: Update release workflow to support immutable releases
Changed from softprops/action-gh-release to native gh CLI command. This creates the release and uploads assets in one atomic operation, which works correctly with GitHub's immutable releases setting. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 45e39f4 commit fa589d2

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,14 @@ jobs:
6666
echo "**Full Changelog**: https://github.com/${{ github.repository }}/compare/$(git describe --tags --abbrev=0 HEAD^)...v${{ steps.version.outputs.version }}" >> RELEASE_NOTES.md
6767
6868
- name: Create GitHub Release
69-
uses: softprops/action-gh-release@v1
70-
with:
71-
body_path: RELEASE_NOTES.md
72-
files: dist/*
73-
draft: false
74-
prerelease: false
75-
generate_release_notes: true
7669
env:
77-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
71+
run: |
72+
gh release create v${{ steps.version.outputs.version }} \
73+
dist/* \
74+
--title "v${{ steps.version.outputs.version }}" \
75+
--notes-file RELEASE_NOTES.md \
76+
--verify-tag
7877
7978
- name: Publish to PyPI
8079
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)