-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔏🧪 Sign released artifacts @ CI/CD w/ Sigstore
- Loading branch information
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1348,6 +1348,7 @@ jobs: | |
permissions: | ||
contents: write | ||
discussions: write | ||
id-token: write # IMPORTANT: mandatory for Sigstore signing | ||
|
||
steps: | ||
- name: Download all the dists | ||
|
@@ -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 | ||
|