File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : Deploy | Publish Pypi Packages
2
2
3
3
on :
4
+ workflow_dispatch :
4
5
push :
5
6
branches :
6
7
- ' **' # All branches for Test PyPI
92
93
Move-Item -Path pyproject.toml.bak -Destination pyproject.toml -Force
93
94
94
95
- name : Build package for PyPI
95
- if : startsWith(github.ref, 'refs/tags/')
96
+ if : startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch'
96
97
run : |
97
98
python -m build
98
99
@@ -112,8 +113,8 @@ jobs:
112
113
# Upload with verbose output for debugging
113
114
twine upload --skip-existing --verbose --repository-url https://test.pypi.org/legacy/ dist/*
114
115
115
- - name : Publish to PyPI (new tag)
116
- if : startsWith(github.ref, 'refs/tags/')
116
+ - name : Publish to PyPI (new tag or workflow dispatch )
117
+ if : startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch'
117
118
env :
118
119
TWINE_USERNAME : __token__
119
120
TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
You can’t perform that action at this time.
0 commit comments