diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 6f5d5cb..960c630 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -2,6 +2,7 @@ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python name: Python package +run-name: Package and Publish on: workflow_run: @@ -39,25 +40,23 @@ jobs: pypi-publish: # Remember, matching strings need to be in single quotes. - runs-on: ubuntu-latest + needs: + - release-build permissions: # IMPORTANT: this permission is mandatory for trusted publishing id-token: write + runs-on: ubuntu-latest # Dedicated environments with protections for publishing are strongly recommended. # For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules environment: name: pypi-publish # OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status: url: https://pypi.org/p/pywebpush - # - # ALTERNATIVE: if your GitHub Release name is the PyPI project version string - # ALTERNATIVE: exactly, uncomment the following line instead: - # url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }} steps: - - name: Retrieve release distributions + - name: Pull release distributions # Make sure the artifact versions match - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: # Name of the distribution (no idea why they don't make this clear) name: pywebpush