File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -50,13 +50,16 @@ jobs:
50
50
name : upload release to PyPI
51
51
needs : [build]
52
52
runs-on : ubuntu-latest
53
- if : github.event_name == 'release' && github.event.action == 'published'
53
+ 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
54
60
steps :
55
61
- uses : actions/download-artifact@v3
56
62
with :
57
63
name : artifact
58
64
path : dist
59
65
- uses : pypa/gh-action-pypi-publish@release/v1
60
- with :
61
- user : __token__
62
- password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments