mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +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"
|
||||
(cd "$PROJECT_DIR" && cargo test --release)
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue