chore: restore clean check and tag checkout to publish script
All checks were successful
Rust / build (push) Successful in 2m22s
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful

This commit is contained in:
Paul Campbell 2024-07-16 08:38:31 +01:00
parent 33907a1d32
commit 95129ddeef

View file

@ -42,9 +42,9 @@ grcov-coverage:
publish version: publish version:
#!/usr/bin/bash -e #!/usr/bin/bash -e
# [[ -z $(git status --short) ]] || echo "Worktree is Dirty - aborting" ; exit [[ -z $(git status --short) ]] || echo "Worktree is Dirty - aborting" ; exit
echo "Clean" echo "Clean"
# git co v{{version}} git co v{{version}}
ORDER=$(cargo publish-workspace --target-version {{version}} --crate-prefix git-next --show-order 2>/dev/null | cut -d\ -f2-) ORDER=$(cargo publish-workspace --target-version {{version}} --crate-prefix git-next --show-order 2>/dev/null | cut -d\ -f2-)
# INFO: Why not use publish-workspace to publish? It doesn't support when crates-io registry is replaced # INFO: Why not use publish-workspace to publish? It doesn't support when crates-io registry is replaced
for P in ${ORDER} for P in ${ORDER}