File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,12 @@ jobs:
28
28
- name : Build sdist and wheel
29
29
run : |
30
30
python setup.py sdist bdist_wheel
31
- - name : Publish distribution to Test PyPI
32
- uses : pypa/gh-action-pypi-publish@master
33
- with :
34
- password : ${{ secrets.test_pypi_password }}
35
- repository_url : https://test.pypi.org/legacy/
36
31
- name : Publish distribution to PyPI
37
- if : startsWith(github.ref, 'refs/tags')
38
- uses : pypa/gh-action-pypi-publish@master
32
+ # This condition prevents PRs from being published as part of
33
+ # the test job.
34
+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
35
+ uses : pypa/gh-action-pypi-publish@v1.6.4
39
36
with :
40
- password : ${{ secrets.pypi_password }}
37
+ password : ${{ secrets.PYPI_API_TOKEN }}
38
+ verbose : true
39
+ print_hash : true
You can’t perform that action at this time.
0 commit comments