Skip to content

Commit bdd9e1b

Browse files
desty2kclaude
andcommitted
CI: trigger release on tag push, auto-create GitHub Release
Workflow now triggers on `v*` tag push instead of manual release. Adds github-release job that creates a Release with auto-generated notes and attaches all built artifacts. Flow: git tag v2.0.0 && git push --tags → build → TestPyPI → PyPI → GH Release Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 0067f21 commit bdd9e1b

1 file changed

Lines changed: 23 additions & 3 deletions

File tree

.github/workflows/deploy-pypi.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
name: Publish to PyPI
1+
name: Release
22

33
on:
4-
release:
5-
types: [published]
4+
push:
5+
tags: ["v*"]
66

77
permissions:
88
id-token: write
9+
contents: write
910

1011
jobs:
1112
build-sdist:
@@ -84,3 +85,22 @@ jobs:
8485
path: dist/
8586

8687
- uses: pypa/gh-action-pypi-publish@release/v1
88+
89+
github-release:
90+
name: Create GitHub Release
91+
needs: [publish-pypi]
92+
runs-on: ubuntu-latest
93+
94+
steps:
95+
- uses: actions/checkout@v6
96+
97+
- uses: actions/download-artifact@v8
98+
with:
99+
pattern: dist-*
100+
merge-multiple: true
101+
path: dist/
102+
103+
- uses: softprops/action-gh-release@v2
104+
with:
105+
generate_release_notes: true
106+
files: dist/*

0 commit comments

Comments
 (0)