mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 09:31:34 +11:00
Add generic publish crate script
This commit is contained in:
parent
b7d52c8ec2
commit
da1fea86fe
8
.github/scripts/publish-crate.sh
vendored
Normal file
8
.github/scripts/publish-crate.sh
vendored
Normal file
|
@ -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)
|
2
.github/scripts/run-branch-build.sh
vendored
2
.github/scripts/run-branch-build.sh
vendored
|
@ -20,4 +20,4 @@ for CARGO_PROJECT_FILE in "${CARGO_PROJECT_FILES[@]}"; do
|
||||||
echo "Testing $PROJECT_DIR and release mode"
|
echo "Testing $PROJECT_DIR and release mode"
|
||||||
(cd "$PROJECT_DIR" && cargo test --release)
|
(cd "$PROJECT_DIR" && cargo test --release)
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue