Skip to content

Commit 0a6400b

Browse files
committed
update publishing action using latest instructions
https://github.com/marketplace/actions/pypi-publish
1 parent 445ae52 commit 0a6400b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/python-publish.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ jobs:
3030
run: |
3131
python setup.py sdist bdist_wheel
3232
- name: Publish distribution to Test PyPI
33-
uses: pypa/gh-action-pypi-publish@master
33+
uses: pypa/gh-action-pypi-publish@v1.6.4
3434
with:
3535
password: ${{ secrets.TEST_PYPI_PASSWORD }}
3636
repository_url: https://test.pypi.org/legacy/
3737
- name: Publish distribution to PyPI
3838
# This condition prevents PRs from being published as part of
3939
# the test job.
40-
if: startsWith(github.ref, 'refs/tags')
41-
uses: pypa/gh-action-pypi-publish@master
40+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
41+
uses: pypa/gh-action-pypi-publish@v1.6.4
4242
with:
4343
password: ${{ secrets.PYPI_PASSWORD }}

0 commit comments

Comments
 (0)