From 4451ad7c61d303c4799f08842f5754f7587a18cb Mon Sep 17 00:00:00 2001 From: Wim Pomp Date: Wed, 16 Oct 2024 14:36:21 +0200 Subject: [PATCH] - change publish.yml --- .github/workflows/publish.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2006944..901cc38 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,16 +9,16 @@ jobs: name: publish needs: publish_wheels runs-on: ubuntu-latest - environment: pypi + environment: + name: pypi + url: https://pypi.org/p/tiffwrite + permissions: + id-token: write steps: - - uses: actions/download-artifact@v4 + - name: Download all the dists + uses: actions/download-artifact@v4 with: - # unpacks all tiffwrite artifacts into dist/ - pattern: tiffwrite-* - path: dist - merge-multiple: true - - name: Publish package to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - password: ${{ secrets.PYPI_API_TOKEN }} - repository-url: https://upload.pypi.org/legacy/ \ No newline at end of file + name: python-package-distributions + path: dist/ + - name: Publish distribution 📦 to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file