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
7 changes: 6 additions & 1 deletion ci/publish-crates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,12 @@ crate_version() {
publish_crate() {
local crate="$1" attempt out when target now wait
for attempt in $(seq 1 40); do
if out="$(cargo publish -p "$crate" 2>&1)"; then
# --allow-dirty because the OWID source under fodid/src/owid is copied
# in by ci/copy-owid-source.ps1 and deliberately never committed, and
# cargo otherwise refuses to publish a package that includes files git
# does not track. The workflow starts from a clean checkout, so that
# copy is the only thing the flag lets through.
if out="$(cargo publish -p "$crate" --allow-dirty 2>&1)"; then
echo "$out"
return 0
fi
Expand Down
Loading