Skip to content

Commit

Permalink
ci: update deployment a bit (#922)
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii authored Oct 2, 2024
1 parent aae67e6 commit 29f9ca3
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,35 +17,30 @@ jobs:
with:
fetch-depth: 0

- name: Build package
run: pipx run build

- uses: actions/upload-artifact@v4
with:
path: dist/*
- uses: hynek/build-and-inspect-python-package@v2

deploy:
if: github.event_name == 'release' && github.event.action == 'published'
needs: [dist]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/scikit-build-core
permissions:
id-token: write
attestations: write
contents: read

needs: [dist]

steps:
- uses: actions/download-artifact@v4
with:
name: artifact
name: Packages
path: dist

- name: Generate artifact attestation for sdist and wheel
uses: actions/attest-build-provenance@v1.4.3
uses: actions/attest-build-provenance@v1
with:
subject-path: "dist/*"

- uses: pypa/gh-action-pypi-publish@release/v1
with:
attestations: true

0 comments on commit 29f9ca3

Please sign in to comment.