File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ name: Publish to PyPI
2
2
on :
3
3
push :
4
4
tags : ["*"] # this will run full workflow including publish to PyPI
5
+ workflow_dispatch :
5
6
6
7
jobs :
7
8
build :
@@ -10,19 +11,19 @@ jobs:
10
11
artifact-name : package
11
12
12
13
publish :
13
- # only run this for tags
14
- if : startsWith(github.event.ref, 'refs/tags/')
15
14
needs : [build]
16
15
runs-on : ubuntu-latest
17
16
steps :
18
17
- uses : actions/download-artifact@v3
19
18
with :
20
19
name : package
21
20
path : dist
21
+ - name : Install twine
22
+ run : pip install -q twine
22
23
- name : Publish 📦 to PyPI
23
- run : |
24
- pip install -q twine
25
- twine upload dist/*
26
- with :
27
- user : __token__
28
- password : ${{ secrets.pypi_password }}
24
+ # only run this for tags
25
+ if : startsWith(github.event.ref, 'refs/tags/')
26
+ env :
27
+ TWINE_USERNAME : __token__
28
+ TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
29
+ run : twine upload dist/*
You can’t perform that action at this time.
0 commit comments