build: switch to deploying the website from dev rather than main

This commit is contained in:
Starbeamrainbowlabs 2023-07-31 19:56:31 +01:00
parent 5ca5d1f1de
commit 8efceeaa4c
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2

@ -2,10 +2,10 @@
set -e;
# 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
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
# ██████ ██ ██████ ██ ██ ██ ██ ██████