We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb23d9b commit c9134feCopy full SHA for c9134fe
.github/workflows/pypi.yml
@@ -50,13 +50,16 @@ jobs:
50
name: upload release to PyPI
51
needs: [build]
52
runs-on: ubuntu-latest
53
- if: github.event_name == 'release' && github.event.action == 'published'
+ if: github.repository_owner == 'pymc-devs' && github.event_name == 'release' && github.event.action == 'published'
54
+ # Use the `release` GitHub environment to protect the Trusted Publishing (OIDC)
55
+ # workflow by requiring signoff from a maintainer.
56
+ environment: release
57
+ permissions:
58
+ # write id-token is necessary for trusted publishing (OIDC)
59
+ id-token: write
60
steps:
61
- uses: actions/download-artifact@v3
62
with:
63
name: artifact
64
path: dist
65
- uses: pypa/gh-action-pypi-publish@release/v1
- with:
- user: __token__
- password: ${{ secrets.PYPI_API_TOKEN }}
0 commit comments