Skip to content

Commit ce9d1fd

Browse files
authored
Create publish.yml
1 parent 3350b94 commit ce9d1fd

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/publish.yml

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

0 commit comments

Comments
 (0)