mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-05 06:53:52 +01:00
build: switch to deploying the website from dev rather than main
This commit is contained in:
parent
517110fd2c
commit
bf8c562575
4
build.sh
4
build.sh
@ -2,10 +2,10 @@
|
|||||||
set -e;
|
set -e;
|
||||||
|
|
||||||
# current_branch="$(git rev-parse --abbrev-ref HEAD)";
|
# current_branch="$(git rev-parse --abbrev-ref HEAD)";
|
||||||
is_main="$(git branch --contains HEAD | awk '/HEAD/ { next } /main/ { print $1 }')";
|
is_main="$(git branch --contains HEAD | awk '/HEAD/ { next } /dev/ { print $1 }')";
|
||||||
|
|
||||||
if [[ "${1}" == "ci" ]] && [[ ! -z "${is_main}" ]]; then
|
if [[ "${1}" == "ci" ]] && [[ ! -z "${is_main}" ]]; then
|
||||||
echo "Skipping build, because this commit does not appear to be on the 'main' branch, and we only deploy commits on the 'main' branch.";
|
echo "Skipping build, because this commit does not appear to be on the 'dev' branch, and we only deploy commits on the 'main' branch.";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ██████ ██ ██████ ██ ██ ██ ██ ██████
|
# ██████ ██ ██████ ██ ██ ██ ██ ██████
|
||||||
|
Loading…
Reference in New Issue
Block a user