Skip to content

Commit e3efc6c

Browse files
aksOpsclaude
andcommitted
Add GitHub release creation to PyPI publish workflow
After successful PyPI publish, creates a GitHub release with: - Tag: v{version} - Auto-generated changelog from commits - Wheel and sdist attached as release assets Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 32bebc6 commit e3efc6c

1 file changed

Lines changed: 28 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
default: false
1414

1515
permissions:
16-
contents: read
16+
contents: write
1717
id-token: write
1818

1919
jobs:
@@ -170,3 +170,30 @@ jobs:
170170
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1
171171
with:
172172
attestations: true
173+
174+
github-release:
175+
name: Create GitHub Release
176+
needs: publish-pypi
177+
runs-on: ubuntu-latest
178+
permissions:
179+
contents: write
180+
steps:
181+
- uses: actions/checkout@v4
182+
with:
183+
fetch-depth: 0
184+
185+
- name: Download artifacts
186+
uses: actions/download-artifact@v4
187+
with:
188+
name: dist
189+
path: dist/
190+
191+
- name: Create GitHub Release
192+
env:
193+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
194+
VERSION: ${{ inputs.version }}
195+
run: |
196+
gh release create "v${VERSION}" dist/* \
197+
--title "v${VERSION}" \
198+
--generate-notes \
199+
--latest

0 commit comments

Comments
 (0)