File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 4
4
name : Upload Python Package
5
5
6
6
on :
7
- push :
8
- branches :
9
- - master
7
+ release :
8
+ types : [created]
10
9
11
10
jobs :
12
11
deploy :
13
12
14
13
runs-on : ubuntu-latest
15
14
16
15
steps :
17
- - uses : actions/checkout@v2
16
+ - uses : actions/checkout@v3
18
17
- name : Set up Python
19
- uses : actions/setup-python@v2
18
+ uses : actions/setup-python@v3
20
19
with :
21
20
python-version : ' 3.x'
22
21
- name : Install dependencies
23
22
run : |
24
23
python -m pip install --upgrade pip
25
- pip install setuptools wheel twine build
26
- - name : Build and publish
24
+ pip install setuptools wheel twine
25
+ - name : Build package
26
+ run : python -m build
27
+ - name : Publish package
27
28
env :
28
29
TWINE_USERNAME : ' __token__'
29
30
TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
30
- run : |
31
- python -m build
32
- twine upload --repository testpypi dist/*
31
+ run : twine upload --repository testpypi dist/*
You can’t perform that action at this time.
0 commit comments