Skip to content

Commit

Permalink
Merge pull request #9 from mindmelting/fix/update-gh-action-tag
Browse files Browse the repository at this point in the history
fix: Update sunsetted tag for pypi publish action
  • Loading branch information
mindmelting authored Feb 4, 2024
2 parents 66f3a90 + 8f3b45e commit 63f8741
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
name: Build test and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-20.04

permissions:
id-token: write

steps:
- uses: actions/checkout@master
- name: Set up Python 3.9
Expand Down Expand Up @@ -40,13 +43,13 @@ jobs:
run: |
python setup.py sdist bdist_wheel
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip_existing: true
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 63f8741

Please sign in to comment.