Skip to content

Commit c00e2b8

Browse files
committed
Add release script
Signed-off-by: Guillaume W. Bres <[email protected]>
1 parent 259a37d commit c00e2b8

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/rust.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,22 @@ jobs:
2323
run: cargo build --verbose
2424
- name: Test (all features)
2525
run: cargo test --verbose --all-features
26+
27+
release:
28+
name: Release
29+
runs-on: ubuntu-latest
30+
needs: [build]
31+
if: github.ref_type == 'tag'
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v4
35+
- name: Install stable toolchain
36+
uses: dtolnay/rust-toolchain@master
37+
with:
38+
toolchain: stable
39+
- name: Publish
40+
env:
41+
TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
42+
run: |
43+
cargo login $TOKEN
44+
cargo publish

0 commit comments

Comments
 (0)