Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

Commit a0e6867

Browse files
authored
Add workflow for release to crates.io (#19)
1 parent af12f8c commit a0e6867

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags: ["v*"]
6+
7+
jobs:
8+
release-crates-io:
9+
name: Release crates.io
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+
- uses: actions-rs/cargo@v1
19+
with:
20+
command: login
21+
args: ${{ secrets.CRATES_IO_TOKEN }}
22+
- uses: actions-rs/cargo@v1
23+
with:
24+
command: publish

0 commit comments

Comments
 (0)