File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,14 @@ jobs:
2222 persist-credentials : false
2323 - uses : hynek/build-and-inspect-python-package@14c7e53f5d033cfa99f7af916fa59a6f7f356394 # v2.11.0
2424 with :
25+ # Prove that the packages were built in the context of this workflow.
2526 attest-build-provenance-github : true
2627
2728 publish-package :
29+ # Don't publish from forks
2830 if : github.repository_owner == 'pymc-devs' && github.event_name == 'push' && github.ref == 'refs/heads/main'
31+ # Use the `release` GitHub environment to protect the Trusted Publishing (OIDC)
32+ # workflow by requiring signoff from a maintainer.
2933 environment : release
3034 needs : build-package
3135 runs-on : ubuntu-latest
3640 - name : Download Distribution Artifacts
3741 uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
3842 with :
43+ # The build-and-inspect-python-package action invokes upload-artifact.
44+ # These are the correct arguments from that action.
3945 name : Packages
4046 path : dist
4147 - name : Publish Package to PyPI
4248 uses : pypa/gh-action-pypi-publish@67339c736fd9354cd4f8cb0b744f2b82a74b5c70 # v1.12.3
49+ # Implicitly attests that the packages were uploaded in the context of this workflow.
You can’t perform that action at this time.
0 commit comments