diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 30cf746..a560f7d 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -39,7 +39,7 @@ jobs: publish-to-pypi: name: >- Publish Python 🐍 distribution 📦 to PyPI - if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes + if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' # only publish to PyPI on tag pushes or manual trigger needs: - build runs-on: ubuntu-latest @@ -47,7 +47,7 @@ jobs: name: pypi url: https://pypi.org/p/ismrmrmd permissions: - id-token: ${{ secrets.PYPI_API_TOKEN }} + id-token: write steps: - name: Download all the dists uses: actions/download-artifact@v3