Skip to content

Commit 606193a

Browse files
committed
Add github action for releasing crates
Signed-off-by: Matthias Wahl <matthiaswahl@m7w3.de>
1 parent 4e99795 commit 606193a

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

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)