Skip to content

Commit

Permalink
🔏🧪 Sign released artifacts @ CI/CD w/ Sigstore
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Apr 9, 2024
1 parent b2af5ef commit 27a3c94
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1348,6 +1348,7 @@ jobs:
permissions:
contents: write
discussions: write
id-token: write # IMPORTANT: mandatory for Sigstore signing

steps:
- name: Download all the dists
Expand Down Expand Up @@ -1423,16 +1424,28 @@ jobs:
}}' | tee -a release-notes.md
shell: bash

- name: Sign the dists with Sigstore
uses: sigstore/[email protected]
with:
inputs: >-
dist/${{ needs.pre-setup.outputs.sdist-artifact-name }}
dist/${{ needs.pre-setup.outputs.wheel-artifact-name }}
- name: >-
Publish a GitHub Release for
${{ needs.pre-setup.outputs.git-tag }}
with Sigstore-signed artifacts
uses: ncipollo/release-action@v1
with:
allowUpdates: false
artifactErrorsFailBuild: false
artifacts: |
dist/${{ needs.pre-setup.outputs.sdist-artifact-name }}
dist/${{ needs.pre-setup.outputs.sdist-artifact-name }}.crt
dist/${{ needs.pre-setup.outputs.sdist-artifact-name }}.sig
dist/${{ needs.pre-setup.outputs.wheel-artifact-name }}
dist/${{ needs.pre-setup.outputs.wheel-artifact-name }}.crt
dist/${{ needs.pre-setup.outputs.wheel-artifact-name }}.sig
artifactContentType: raw # Because whl and tgz are of different types
bodyFile: release-notes.md
discussionCategory: Announcements
Expand Down

0 comments on commit 27a3c94

Please sign in to comment.