Skip to content

Commit 68023e2

Browse files
committed
Add publish crate
1 parent 06e5e18 commit 68023e2

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/publish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish Crate
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v2
13+
14+
- name: Set up Rust
15+
uses: actions-rs/toolchain@v1
16+
with:
17+
toolchain: stable
18+
override: true
19+
20+
- name: Publish to crates.io
21+
env:
22+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
23+
run: cargo publish

0 commit comments

Comments
 (0)