Skip to content

Commit 04dcb2c

Browse files
authored
feat: introduce github action to publish to crates (#32)
Ref: #30
1 parent a9e4dc8 commit 04dcb2c

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/crates.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish to Crates
2+
on:
3+
release:
4+
types: [created]
5+
workflow_dispatch:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
- name: Install stable toolchain
14+
uses: actions-rs/toolchain@v1
15+
with:
16+
profile: minimal
17+
toolchain: stable
18+
override: true
19+
- run: cargo publish --token ${CRATES_TOKEN}
20+
env:
21+
CRATES_TOKEN: ${{ secrets.CRATES_GBPROD_GITCOMMIT }}

.github/workflows/npm.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Publish to NPM
22
on:
33
release:
44
types: [created]
5+
workflow_dispatch:
6+
57
jobs:
68
build:
79
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)