We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3427d55 commit 151caa7Copy full SHA for 151caa7
.github/workflows/rust.yml .github/workflows/ci.yml.github/workflows/rust.yml renamed to .github/workflows/ci.yml
@@ -1,4 +1,4 @@
1
-name: Rust
+name: CI
2
3
on:
4
push:
.github/workflows/release.yml
@@ -0,0 +1,17 @@
+name: Publish to crates.io
+on:
+ push:
+ tags: ['v*'] # Triggers when pushing tags starting with 'v'
5
+jobs:
6
+ publish:
7
+ runs-on: ubuntu-latest
8
+ environment: release # Optional: for enhanced security
9
+ permissions:
10
+ id-token: write # Required for OIDC token exchange
11
+ steps:
12
+ - uses: actions/checkout@v6
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 }}
0 commit comments