File tree Expand file tree Collapse file tree 2 files changed +9
-13
lines changed
Expand file tree Collapse file tree 2 files changed +9
-13
lines changed Original file line number Diff line number Diff line change 44 push :
55 tags :
66 - ' v*'
7+ workflow_dispatch :
8+ inputs :
9+ tag_name :
10+ description : ' Tag to publish (e.g., v0.1.0)'
11+ required : true
12+ type : string
713
814jobs :
915 release :
1723 - uses : actions/checkout@v4
1824 with :
1925 fetch-depth : 0
26+ ref : ${{ github.event.inputs.tag_name || github.ref }}
2027
2128 - name : Set up Python
2229 uses : actions/setup-python@v5
3643 with :
3744 files : dist/*
3845 generate_release_notes : true
46+ tag_name : ${{ github.event.inputs.tag_name || github.ref_name }}
3947
4048 - name : Publish to PyPI
4149 uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change 3232 - name : Install dependencies
3333 run : |
3434 pip install --upgrade pip
35- pip install --upgrade bump-my-version hatch twine
35+ pip install --upgrade bump-my-version
3636
3737 - name : Configure Git
3838 run : |
4949 github_token : ${{ secrets.GITHUB_TOKEN }}
5050 branch : ${{ github.ref }}
5151 tags : true
52-
53- - name : Build package
54- run : hatch build
55-
56- - name : Create GitHub Release
57- uses : softprops/action-gh-release@v1
58- with :
59- files : dist/*
60- generate_release_notes : true
61-
62- - name : Publish to PyPI
63- uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments