Skip to content

Commit 8e576c8

Browse files
authored
Merge pull request #13 from simd-lite/publish-crates-action
Add github action for releasing crates
2 parents 4e99795 + 606193a commit 8e576c8

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Publish Crates
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
publish-simd-json-derive-int:
8+
name: Publish simd-json-derive-int
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
with:
13+
fetch-depth: 0
14+
- uses: actions-rs/toolchain@v1
15+
with:
16+
profile: minimal
17+
toolchain: stable
18+
- name: Publish simd-json-derive-int to crates.io
19+
uses: katyo/publish-crates@v1
20+
with:
21+
path: './simd-json-derive-int'
22+
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
23+
publish-simd-json-derive:
24+
name: Publish simd-json-derive
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v2
28+
with:
29+
fetch-depth: 0
30+
- uses: actions-rs/toolchain@v1
31+
with:
32+
profile: minimal
33+
toolchain: stable
34+
- name: Publish simd-json-derive to crates.io
35+
uses: katyo/publish-crates@v1
36+
with:
37+
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)