Skip to content

Commit 8498100

Browse files
committed
build: add release workflow
1 parent 3e69233 commit 8498100

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/release.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Publish Release
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
7+
jobs:
8+
cargo-publish:
9+
name: Publish to Cargo
10+
runs-on: ubuntu-latest
11+
environment: release
12+
permissions:
13+
id-token: write
14+
steps:
15+
- uses: actions/checkout@v5
16+
- uses: rust-lang/crates-io-auth-action@v1
17+
id: auth
18+
- run: cargo publish
19+
env:
20+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}

0 commit comments

Comments
 (0)