Skip to content

Commit 4610213

Browse files
committed
Improving build script
[deploy site]
1 parent c37eb29 commit 4610213

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build-site.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ set -e
55
SELENIUM_GITHUB_API_PULLS_URL=https://api.github.com/repos/SeleniumHQ/seleniumhq.github.io/pulls
66
SELENIUM_ACCEPT_HEADER="Accept: application/vnd.github+json"
77
SELENIUM_AUTH_HEADER="Authorization: Bearer ${SELENIUM_CI_TOKEN}"
8-
SELENIUM_EXAMPLES_BRANCH=trunk
98
SELENIUM_EXAMPLES_REPO=seleniumhq.github.io
109
SELENIUM_EXAMPLES_ORG=SeleniumHQ
1110

1211
if [[ "${GITHUB_ACTIONS}" = "true" ]]; then
1312
SELENIUM_EXAMPLES_BRANCH=${GITHUB_HEAD_REF}
1413
fi
1514

15+
1616
USE_BASE_URL_SITE=""
1717
if [[ "${NETLIFY}" = "true" ]]; then
1818
echo -e "\033[0;32mNetlify detected, deployment happening at ${DEPLOY_PRIME_URL}...\033[0m"
@@ -28,6 +28,11 @@ if [[ "${NETLIFY}" = "true" ]]; then
2828
fi
2929
fi
3030

31+
if [[ "${SELENIUM_EXAMPLES_BRANCH}" = "" ]]; then
32+
echo -e "\033[0;32mEmpty SELENIUM_EXAMPLES_BRANCH, setting to trunk...\033[0m"
33+
SELENIUM_EXAMPLES_BRANCH=trunk
34+
fi
35+
3136
echo -e "\033[0;32mDeleting Hugo previously generated directories...\033[0m"
3237
rm -rf website_and_docs/public
3338

0 commit comments

Comments
 (0)