Skip to content

Commit 3a67627

Browse files
committed
fix(ci): allow-dirty for cargo publish after registry-ref strip
The strip step intentionally modifies Cargo.toml manifests to make them crates.io-compatible, leaving the working tree dirty. cargo publish refuses a dirty tree by default; pass --allow-dirty since the changes are deliberate and verified.
1 parent ad80860 commit 3a67627

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/publish-crates.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ jobs:
8484
continue
8585
fi
8686
if [ "$DRY_RUN" = "true" ]; then
87-
cargo publish --manifest-path "$manifest" --dry-run
87+
cargo publish --manifest-path "$manifest" --dry-run --allow-dirty
8888
else
8989
set +e
90-
output=$(cargo publish --manifest-path "$manifest" 2>&1)
90+
output=$(cargo publish --manifest-path "$manifest" --allow-dirty 2>&1)
9191
exit_code=$?
9292
set -e
9393
if [ "$exit_code" -ne 0 ]; then

0 commit comments

Comments
 (0)