Skip to content

Commit

Permalink
Merge pull request #2323 from Saransh-cpp/publish-pypi-action
Browse files Browse the repository at this point in the history
Use `pypa/gh-action-pypi-publish@release/v1`
  • Loading branch information
valentinsulzer authored Sep 27, 2022
2 parents 0c617fc + 9f1fe6d commit 75cfa69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,15 @@ jobs:
if: |
github.event.inputs.target == 'pypi' ||
(github.event_name == 'push' && github.ref == 'refs/heads/main')
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
packages_dir: files/

- name: Publish on TestPyPI
if: github.event.inputs.target == 'testpypi'
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TESTPYPI_TOKEN }}
Expand Down

0 comments on commit 75cfa69

Please sign in to comment.