Commit 4944d59
chore: Enhance release workflow with automatic PyPI publishing
Improvements to .github/workflows/release.yml:
- Added package validation step (twine check)
- Extract version from git tag automatically
- Generate release notes from CHANGELOG.md (with fallback to git log)
- Add full changelog link to release notes
- Improved PyPI publishing with verbose output
- Only publish to PyPI on tag push (not manual workflow_dispatch)
- Added id-token permission for future trusted publishing support
How it works:
1. Push a version tag: git tag v1.6.3 && git push origin v1.6.3
2. GitHub Actions automatically:
- Builds the package
- Validates with twine check
- Creates GitHub release with changelog
- Publishes to PyPI (if PYPI_API_TOKEN secret is set)
Setup required:
- Add PYPI_API_TOKEN to GitHub repository secrets
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 2c92a46 commit 4944d59
1 file changed
Lines changed: 41 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
33 | 47 | | |
34 | 48 | | |
35 | | - | |
36 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
37 | 67 | | |
38 | 68 | | |
39 | 69 | | |
40 | 70 | | |
41 | 71 | | |
42 | | - | |
43 | | - | |
| 72 | + | |
44 | 73 | | |
45 | 74 | | |
| 75 | + | |
46 | 76 | | |
47 | 77 | | |
48 | 78 | | |
49 | | - | |
50 | | - | |
| 79 | + | |
| 80 | + | |
51 | 81 | | |
52 | 82 | | |
53 | 83 | | |
54 | 84 | | |
55 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
0 commit comments