mirror of
https://github.com/tommytran732/tommytran.io
synced 2024-09-19 14:44:43 -04:00
10 lines
185 B
Bash
10 lines
185 B
Bash
#!/bin/bash
|
|
|
|
CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latest
|
|
|
|
if [ "$CF_PAGES_BRANCH" == "main" ]; then
|
|
hugo --minify
|
|
else
|
|
hugo -b $CF_PAGES_URL --minify
|
|
fi
|