mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-27 15:42:01 +00:00
ci: PyPI attestations (#5374)
This commit is contained in:
parent
5b7c0b04b9
commit
0cf3a0f7b5
7
.github/workflows/pip.yml
vendored
7
.github/workflows/pip.yml
vendored
@ -91,11 +91,12 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name == 'release' && github.event.action == 'published'
|
||||
needs: [packaging]
|
||||
environment: pypi
|
||||
environment:
|
||||
name: pypi
|
||||
url: https://pypi.org/p/pybind11
|
||||
permissions:
|
||||
id-token: write
|
||||
attestations: write
|
||||
contents: read
|
||||
|
||||
steps:
|
||||
# Downloads all to directories matching the artifact names
|
||||
@ -110,8 +111,10 @@ jobs:
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
||||
with:
|
||||
packages-dir: standard/
|
||||
attestations: true
|
||||
|
||||
- name: Publish global package
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
||||
with:
|
||||
packages-dir: global/
|
||||
attestations: true
|
||||
|
Loading…
Reference in New Issue
Block a user