From 8f3b45ea5f2c75460ffa86d2c7691f16cd2b3bd3 Mon Sep 17 00:00:00 2001 From: Lawrence Hunt Date: Sun, 4 Feb 2024 17:41:58 +1100 Subject: [PATCH] fix: Update sunsetted tag for pypi publish action --- .github/workflows/release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0e16c55..210b19a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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 }} \ No newline at end of file