Commit e445ca2b by Henry Schreiner Committed by Henry Schreiner

ci: PyPI attestations (#5374)

parent 7b67d8e9
...@@ -91,11 +91,12 @@ jobs: ...@@ -91,11 +91,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published' if: github.event_name == 'release' && github.event.action == 'published'
needs: [packaging] needs: [packaging]
environment: pypi environment:
name: pypi
url: https://pypi.org/p/pybind11
permissions: permissions:
id-token: write id-token: write
attestations: write attestations: write
contents: read
steps: steps:
# Downloads all to directories matching the artifact names # Downloads all to directories matching the artifact names
...@@ -110,8 +111,10 @@ jobs: ...@@ -110,8 +111,10 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1 uses: pypa/gh-action-pypi-publish@release/v1
with: with:
packages-dir: standard/ packages-dir: standard/
attestations: true
- name: Publish global package - name: Publish global package
uses: pypa/gh-action-pypi-publish@release/v1 uses: pypa/gh-action-pypi-publish@release/v1
with: with:
packages-dir: global/ packages-dir: global/
attestations: true
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment