Skip to content

Commit 64d6bfd

Browse files
committed
ci: Add cratesio-release.yml
Part of bootc-dev/infra#20 Signed-off-by: Colin Walters <[email protected]>
1 parent 1ffeeca commit 64d6bfd

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# See https://crates.io/docs/trusted-publishing
2+
name: Publish to crates.io
3+
on:
4+
push:
5+
tags: ['v*'] # Triggers when pushing tags starting with 'v'
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-24.04
9+
permissions:
10+
id-token: write # Required for OIDC token exchange
11+
steps:
12+
- uses: actions/checkout@v5
13+
- uses: rust-lang/crates-io-auth-action@v1
14+
id: auth
15+
- run: cargo publish
16+
env:
17+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
18+

0 commit comments

Comments
 (0)