Skip to content

Commit 136c25c

Browse files
authored
ci: Add workflow to publish package to cargo (#4)
* ci: add workflow to publish package to cargo
1 parent 46894e6 commit 136c25c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish Cargo Package
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
package:
10+
runs-on: ubuntu-latest
11+
name: Publish Cargo Package
12+
13+
steps:
14+
- name: Cloning repo
15+
uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
18+
19+
- uses: actions/checkout@v2
20+
- name: Publish
21+
run: cargo publish --token ${{ secrets.CRATES_TOKEN }}

0 commit comments

Comments
 (0)