Skip to content

Commit ba3e042

Browse files
committed
chore: Add Github Action for Rust release
1 parent 5a93e97 commit ba3e042

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/rust-release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Rust Release
2+
3+
on:
4+
push:
5+
tags:
6+
- rust-v*
7+
8+
jobs:
9+
rust-release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions-rs/toolchain@v1
14+
with:
15+
profile: minimal
16+
toolchain: stable
17+
override: true
18+
- run: cargo login ${CRATES_IO_TOKEN}
19+
env:
20+
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
21+
- run: cargo publish

0 commit comments

Comments
 (0)