diff --git a/.github/workflows/crates.yml b/.github/workflows/crates.yml new file mode 100644 index 0000000..af40c65 --- /dev/null +++ b/.github/workflows/crates.yml @@ -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 }} diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 77a9b70..1cf7f8a 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -2,6 +2,8 @@ name: Publish to NPM on: release: types: [created] + workflow_dispatch: + jobs: build: runs-on: ubuntu-latest