Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,15 @@ jobs:
cargo search raysense --limit 1 | grep -q "^raysense = \"$VERSION\""
}

# `--allow-dirty` is required because the CI vendor step writes
# vendor/rayforce/ at clone time, but vendor/ is in .gitignore
# (the source of truth is upstream + .rayforce-version, not the
# committed tree). cargo package would otherwise refuse to ship
# what it sees as "uncommitted changes".
if [[ "$DRY_RUN" == "true" ]]; then
echo "::notice::Dry run: cargo package + cargo publish --dry-run"
cargo package
cargo publish --dry-run
cargo package --allow-dirty
cargo publish --dry-run --allow-dirty
exit 0
fi

Expand All @@ -135,8 +140,8 @@ jobs:
exit 0
fi

cargo package
cargo publish
cargo package --allow-dirty
cargo publish --allow-dirty

# Wait for the registry index to catch up before declaring success.
for delay in 10 20 30 60 90; do
Expand Down