Skip to content

Commit 46fd4d0

Browse files
committed
ci: update publish
1 parent 0150cc0 commit 46fd4d0

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,28 @@ jobs:
6565

6666
- uses: actions/upload-artifact@v4
6767
with:
68+
name: Packages
6869
path: dist
6970

7071
publish:
7172
needs: [dist]
72-
environment: release
73+
environment: pypi
7374
permissions:
7475
id-token: write
76+
attestations: write
77+
contents: read
7578
runs-on: ubuntu-latest
7679
if: github.event_name == 'release' && github.event.action == 'published'
80+
7781
steps:
7882
- uses: actions/download-artifact@v4
7983
with:
8084
name: Packages
8185
path: dist
8286

87+
- name: Generate artifact attestation for sdist and wheel
88+
uses: actions/attest-build-provenance@v1.4.3
89+
with:
90+
subject-path: "dist/*"
91+
8392
- uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)