Skip to content

Commit

Permalink
chore: allow manual release dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
ilbertt committed Oct 18, 2023
1 parent 5995572 commit a12e00b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ on:
- completed
branches:
- main
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
# only run if the tests were successful
if: ${{ github.event.workflow_run.conclusion == 'success' }}
# only run if the tests were successful or the workflow was dispatched manually
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
outputs:
version: ${{ steps.cargo-publish.outputs.version }}
steps:
Expand All @@ -24,7 +25,8 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: "true"
- id: cargo-publish
- name: Publish on crates.io
id: cargo-publish
run: |
rustup target add wasm32-unknown-unknown
cargo publish -p ic-websocket-cdk
Expand Down

0 comments on commit a12e00b

Please sign in to comment.