Skip to content

Commit 0cec1f1

Browse files
authored
Merge pull request #94 from mcu-rust/release_ci
Add a CI to publish crates to crate.io
2 parents ea90fd9 + 5ebae6d commit 0cec1f1

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- "v*"
8+
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
# environment: release # Optional: for enhanced security
13+
permissions:
14+
id-token: write # Required for OIDC token exchange
15+
steps:
16+
- uses: actions/checkout@v6
17+
- uses: rust-lang/crates-io-auth-action@v1
18+
id: auth
19+
- name: Publish Crates
20+
run: ./publish-all.sh
21+
env:
22+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}

0 commit comments

Comments
 (0)