1
0
mirror of https://github.com/PrivSec-dev/privsec.dev synced 2024-11-04 14:11:33 -05:00

Create cloudflare-build.sh (#128)

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

7
cloudflare-build.sh Normal file
View File

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