We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 887ee8a + 6f10553 commit d7cb9b8Copy full SHA for d7cb9b8
.github/workflows/python-publish.yaml
@@ -28,13 +28,12 @@ jobs:
28
- name: Build sdist and wheel
29
run: |
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
- name: Publish distribution to PyPI
37
- if: startsWith(github.ref, 'refs/tags')
38
+ # This condition prevents PRs from being published as part of
+ # the test job.
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
+ uses: pypa/[email protected]
39
with:
40
- password: ${{ secrets.pypi_password }}
+ password: ${{ secrets.PYPI_API_TOKEN }}
+ verbose: true
+ print_hash: true
0 commit comments