1
0
mirror of https://github.com/tommytran732/tommytran.io synced 2024-11-25 10:51:33 -05:00

Update cloudflare-build.sh

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2023-06-16 00:09:41 -07:00 committed by GitHub
parent 6ac2c25da6
commit aa695b4bc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
#!/bin/bash
if [ "$CF_PAGES_BRANCH" == "production" ]; then
if [ "$CF_PAGES_BRANCH" == "main" ]; then
hugo --minify
else
hugo -b $CF_PAGES_URL --minify