File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,34 +4,31 @@ on: push
44jobs :
55 build-n-publish :
66 name : Build and publish packages to PyPI and TestPyPI
7- runs-on : ubuntu-18.04
7+ runs-on : ubuntu-latest
88
99 steps :
10- - name : Checkout
11- uses : actions/checkout@v2.3.1
10+ - name : checkout
11+ uses : actions/checkout@v3
1212 with :
1313 persist-credentials : false
1414 fetch-depth : 0
1515
16- - name : Setup Python
17- uses : actions/setup-python@v2
16+ - name : setup python
17+ uses : actions/setup-python@v4
1818 with :
1919 python-version : 3.9
2020
21- - name : Install python packages
22- run : pip install setuptools
23-
24- - name : Build package
25- run : python setup.py sdist
21+ - name : build package
22+ run : pipx run build
2623
2724 - name : Publish to test PyPI
28- uses : pypa/gh-action-pypi-publish@master
25+ uses : pypa/gh-action-pypi-publish@release/v1
2926 with :
3027 password : ${{ secrets.test_pypi_password }}
3128 repository_url : https://test.pypi.org/legacy/
3229
3330 - name : Publish to tagged release to PyPI
3431 if : startsWith(github.ref, 'refs/tags')
35- uses : pypa/gh-action-pypi-publish@master
32+ uses : pypa/gh-action-pypi-publish@release/v1
3633 with :
3734 password : ${{ secrets.pypi_password }}
You can’t perform that action at this time.
0 commit comments