Skip to content

Commit

Permalink
feat: introduce github action to publish to crates (#32)
Browse files Browse the repository at this point in the history
Ref: #30
  • Loading branch information
gbprod authored Apr 11, 2023
1 parent a9e4dc8 commit 04dcb2c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/crates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish to Crates
on:
release:
types: [created]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: cargo publish --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_GBPROD_GITCOMMIT }}
2 changes: 2 additions & 0 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Publish to NPM
on:
release:
types: [created]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 04dcb2c

Please sign in to comment.