From a12c7d3231efa054b2941719830e8fc4ed54dd9a Mon Sep 17 00:00:00 2001 From: Tommy Date: Fri, 16 Jun 2023 00:16:16 -0700 Subject: [PATCH] Create cloudflare-build.sh (#128) Signed-off-by: Tommy --- cloudflare-build.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 cloudflare-build.sh diff --git a/cloudflare-build.sh b/cloudflare-build.sh new file mode 100644 index 0000000..3f4c924 --- /dev/null +++ b/cloudflare-build.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +if [ "$CF_PAGES_BRANCH" == "main" ]; then + hugo --minify +else + hugo -b $CF_PAGES_URL --minify +fi