Skip to content

Commit

Permalink
ci: fix publish crates
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogyuchi committed Feb 27, 2024
1 parent 4513751 commit 4a07f4c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/publish-crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- uses: katyo/publish-crates@33e1d18666cdfacf9f6c3547194d2c1d39cbf849 # v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
dry-run: ${{ true || fromJson(needs.set-up.outputs.dry-run) }}
ignore-unpublished-changes: true
- env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

DRY_RUN: ${{ true && '--dry-run' || '' }} # true -> fromJson(needs.set-up.outputs.dry-run)
run: |
cargo publish --all-features "$DRY_RUN"

0 comments on commit 4a07f4c

Please sign in to comment.