Skip to content

Commit

Permalink
chore: fix release steps
Browse files Browse the repository at this point in the history
  • Loading branch information
ilbertt committed Oct 17, 2023
1 parent 5591143 commit e9a494f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ jobs:
# only run if the tests were successful
if: ${{ github.event.workflow_run.conclusion == 'success' }}
outputs:
exit_code: ${{ steps.npm-publish.outputs.exit_code }}
version: ${{ steps.npm-publish.outputs.version }}
version: ${{ steps.cargo-publish.outputs.version }}
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
Expand All @@ -25,18 +24,17 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: "true"
- run: |
- id: cargo-publish
run: |
rustup target add wasm32-unknown-unknown
cargo publish -p ic-websocket-cdk
EXIT_CODE=$?
echo "exit_code=$EXIT_CODE" >> "$GITHUB_OUTPUT"
echo "version=v$(cargo pkgid -p ic-websocket-cdk | cut -d# -f2 | cut -d: -f2)" >> "$GITHUB_OUTPUT"
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

tag:
needs: publish
runs-on: ubuntu-latest
if: ${{ needs.publish.outputs.exit_code == '0' }}
outputs:
version: ${{ steps.tag_version.outputs.new_tag }}
steps:
Expand Down

0 comments on commit e9a494f

Please sign in to comment.