Skip to content

Commit 8016730

Browse files
committed
ci: Add publish.yml workflow
Run `cargo publish` to publish to `crates.io` when a version tag is pushed.
1 parent 6e2da70 commit 8016730

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/publish.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags: [ v* ]
6+
7+
env:
8+
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
9+
10+
jobs:
11+
publish:
12+
name: Publish to crates.io
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Run cargo publish
17+
run: cargo publish

0 commit comments

Comments
 (0)