From 1863613008326746207d7c2fe6531543f26be08e Mon Sep 17 00:00:00 2001 From: Philip Colmer Date: Mon, 13 May 2024 18:58:00 +0100 Subject: [PATCH] Option change dir into website --- build-astro-site.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build-astro-site.sh b/build-astro-site.sh index 92892b4..f16eff0 100755 --- a/build-astro-site.sh +++ b/build-astro-site.sh @@ -59,7 +59,11 @@ function post_build_failed_preview(){ fi } -cd "$GITHUB_WORKSPACE/website" || exit 1 +cd "$GITHUB_WORKSPACE" || exit 1 +# Some websites are pulling into a website folder +if [ -d "website" ]; then + cd website || exit 1 +fi setup_vars setup_testing build_site