Skip to content

Commit 967b120

Browse files
committed
Add actions workflow to publish crate
1 parent 48c5351 commit 967b120

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/publish.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Publish
2+
on: release
3+
jobs:
4+
cargo:
5+
name: Cargo
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- uses: actions-rs/toolchain@v1
10+
with:
11+
default: true
12+
- env: CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
13+
run: cargo login "$CARGO_REGISTRY_TOKEN"
14+
- run: cargo publish

0 commit comments

Comments
 (0)