Skip to content

Commit

Permalink
fixup! chore(ci): dry-run cargo publish on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
chrjabs committed Dec 18, 2024
1 parent 04333ef commit aa53c53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/dry-run-publish.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/usr/bin/env bash

PACKAGES=$(cargo metadata --no-deps --format-version=1 | jq -r '.packages[].name')
EXCLUDE="rustsat-capi rustsat-pyapi"

for PKG in ${PACKAGES}; do
cargo publish -p ${PKG} --dry-run --verbose || exit $1
if ! echo ${EXCLUDE} | grep -q -P "( |^)${PKG}( |$)"; then
cargo publish -p ${PKG} --dry-run --verbose "$@" || exit $?
fi
done

0 comments on commit aa53c53

Please sign in to comment.