mirror of
https://github.com/tommytran732/tommytran.io
synced 2024-11-09 19:51:34 -05:00
Create cloudflare-build.sh
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
e9201ee78a
commit
6ac2c25da6
7
cloudflare-build.sh
Normal file
7
cloudflare-build.sh
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ "$CF_PAGES_BRANCH" == "production" ]; then
|
||||||
|
hugo --minify
|
||||||
|
else
|
||||||
|
hugo -b $CF_PAGES_URL --minify
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user