From 6ac2c25da6c24f8d1b0fb5a148e8abfba4086da7 Mon Sep 17 00:00:00 2001 From: Tommy Date: Fri, 16 Jun 2023 00:04:22 -0700 Subject: [PATCH] Create cloudflare-build.sh 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..484be76 --- /dev/null +++ b/cloudflare-build.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +if [ "$CF_PAGES_BRANCH" == "production" ]; then + hugo --minify +else + hugo -b $CF_PAGES_URL --minify +fi