diff --git a/.github/scripts/publish-crate.sh b/.github/scripts/publish-crate.sh new file mode 100644 index 00000000..4c27c22e --- /dev/null +++ b/.github/scripts/publish-crate.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +set -e # Fail if any command fails + +RELEASE_TAG=$(git tag --points-at HEAD) + +PROJECT=${RELEASE_TAG/\/*/} +(cd "$PROJECT" && cargo publish) diff --git a/.github/scripts/run-branch-build.sh b/.github/scripts/run-branch-build.sh index 0da4872f..25411942 100644 --- a/.github/scripts/run-branch-build.sh +++ b/.github/scripts/run-branch-build.sh @@ -20,4 +20,4 @@ for CARGO_PROJECT_FILE in "${CARGO_PROJECT_FILES[@]}"; do echo "Testing $PROJECT_DIR and release mode" (cd "$PROJECT_DIR" && cargo test --release) fi -done \ No newline at end of file +done