File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 push :
55 tags :
66 - " v*"
7+ workflow_dispatch :
8+ inputs :
9+ tag :
10+ description : " Tag to publish (e.g. v0.1.4)"
11+ required : true
712
813jobs :
914 # ── 1. Run tests before publishing ─────────────────────────────────────────
1217 runs-on : ubuntu-latest
1318 steps :
1419 - uses : actions/checkout@v4
20+ with :
21+ ref : ${{ github.event.inputs.tag || github.ref }}
1522 - uses : actions/setup-python@v5
1623 with :
1724 python-version : " 3.11"
2633 runs-on : ubuntu-latest
2734 steps :
2835 - uses : actions/checkout@v4
36+ with :
37+ ref : ${{ github.event.inputs.tag || github.ref }}
2938
3039 - uses : actions/setup-python@v5
3140 with :
8493 - name : Create GitHub Release
8594 uses : softprops/action-gh-release@v2
8695 with :
96+ tag_name : ${{ github.event.inputs.tag || github.ref_name }}
8797 files : dist/*
8898 generate_release_notes : true
You can’t perform that action at this time.
0 commit comments