Skip to content

Commit 29f9ca3

Browse files
authored
ci: update deployment a bit (#922)
1 parent aae67e6 commit 29f9ca3

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

Diff for: .github/workflows/cd.yml

+6-11
Original file line numberDiff line numberDiff line change
@@ -17,35 +17,30 @@ jobs:
1717
with:
1818
fetch-depth: 0
1919

20-
- name: Build package
21-
run: pipx run build
22-
23-
- uses: actions/upload-artifact@v4
24-
with:
25-
path: dist/*
20+
- uses: hynek/build-and-inspect-python-package@v2
2621

2722
deploy:
2823
if: github.event_name == 'release' && github.event.action == 'published'
24+
needs: [dist]
2925
runs-on: ubuntu-latest
3026
environment:
3127
name: pypi
3228
url: https://pypi.org/p/scikit-build-core
3329
permissions:
3430
id-token: write
3531
attestations: write
36-
contents: read
37-
38-
needs: [dist]
3932

4033
steps:
4134
- uses: actions/download-artifact@v4
4235
with:
43-
name: artifact
36+
name: Packages
4437
path: dist
4538

4639
- name: Generate artifact attestation for sdist and wheel
47-
uses: actions/attest-build-provenance@v1.4.3
40+
uses: actions/attest-build-provenance@v1
4841
with:
4942
subject-path: "dist/*"
5043

5144
- uses: pypa/gh-action-pypi-publish@release/v1
45+
with:
46+
attestations: true

0 commit comments

Comments
 (0)