File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
1
name : Publish to PyPI
2
2
on :
3
+ workflow_dispatch :
3
4
push :
4
5
tags :
5
6
- ' *'
6
7
7
8
jobs :
8
9
build-n-publish :
9
10
name : Build and publish to PyPI and TestPyPI
10
- runs-on : ubuntu-18 .04
11
+ runs-on : ubuntu-20 .04
11
12
steps :
12
- - uses : actions/checkout@master
13
- - name : Set up Python 3.7
14
- uses : actions/setup-python@v1
13
+ - uses : actions/checkout@main
14
+ - name : Set up Python 3.8
15
+ uses : actions/setup-python@v2
15
16
with :
16
- python-version : 3.7
17
+ python-version : 3.8
17
18
18
19
- name : Install package
19
20
run : |
@@ -25,14 +26,14 @@ jobs:
25
26
python setup.py sdist
26
27
27
28
- name : Publish distribution to Test PyPI
28
- uses : pypa/gh-action-pypi-publish@master
29
+ uses : pypa/gh-action-pypi-publish@release/v1
29
30
with :
30
31
user : __token__
31
32
password : ${{ secrets.TEST_PYPI_API_TOKEN }}
32
33
repository_url : https://test.pypi.org/legacy/
33
34
- name : Publish distribution to PyPI
34
35
if : startsWith(github.ref, 'refs/tags')
35
- uses : pypa/gh-action-pypi-publish@master
36
+ uses : pypa/gh-action-pypi-publish@release/v1
36
37
with :
37
38
user : __token__
38
39
password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments