We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2eb9e0c commit 0733412Copy full SHA for 0733412
1 file changed
.github/workflows/publish.yml
@@ -27,6 +27,8 @@ jobs:
27
timeout-minutes: 15
28
permissions:
29
contents: read
30
+ id-token: write
31
+ attestations: write
32
steps:
33
- name: Checkout
34
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
@@ -46,6 +48,12 @@ jobs:
46
48
run: cargo test --lib
47
49
- name: Verify crate can be packaged
50
run: cargo package --list
51
+ - name: Package crate
52
+ run: cargo package
53
+ - name: Attest crate provenance
54
+ uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2
55
+ with:
56
+ subject-path: 'target/package/*.crate'
57
- name: Publish to crates.io (dry run)
58
if: github.event.inputs.dry_run == 'true'
59
run: cargo publish --dry-run
0 commit comments