Skip to content

Commit c98b5ad

Browse files
authored
ci: publish to crates.io with --isolated to override publish=false (#782)
1 parent ee3df46 commit c98b5ad

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ jobs:
6060
- name: Publish
6161
env:
6262
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
63-
run: cargo release publish --workspace --execute --no-confirm --allow-branch HEAD
63+
# --isolated ignores [workspace.metadata.release], whose `publish = false`
64+
# (kept so local `cargo release <version>` only tags) would otherwise make
65+
# this a silent no-op.
66+
run: cargo release publish --workspace --execute --no-confirm --allow-branch HEAD --isolated
6467

6568
github_release:
6669
name: Create GitHub Release

0 commit comments

Comments
 (0)