Skip to content

Commit 430ff86

Browse files
authored
Allow dryrun for crates.io (#105)
Allow dryrun for crates.io
1 parent 0d1b2ef commit 430ff86

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ jobs:
259259
name: "Publish to crates.io (${{ inputs.version }})"
260260
needs: validate
261261
runs-on: ubuntu-latest
262-
if: ${{ !inputs.dry_run }}
263262
env:
264263
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
265264
steps:
@@ -279,7 +278,7 @@ jobs:
279278
- uses: Swatinem/rust-cache@v2
280279

281280
- name: Publish skardi
282-
run: cargo publish -p skardi
281+
run: cargo publish -p skardi ${{ inputs.dry_run && '--dry-run' || '' }}
283282

284283
# skardi-sources is not published yet: it depends on lance via git which crates.io disallows.
285284
# Once lance v4 is stable on crates.io, replace the git deps in Cargo.toml, add it to

0 commit comments

Comments
 (0)