blastmud-site/.ci/build

13 lines
441 B
Plaintext
Raw Normal View History

2023-02-17 02:04:46 +11:00
#!/bin/bash -e
set -Eeuo pipefail
if [[ ! -f hugo/hugo ]] || ( ! ( hugo/hugo version | grep -q extended ) ); then
2023-02-18 21:48:55 +11:00
curl -L https://github.com/gohugoio/hugo/releases/download/v0.110.0/hugo_extended_0.110.0_linux-amd64.tar.gz | tar -xvz -C hugo/
fi
export PATH="$(pwd)/hugo:$PATH"
2023-02-17 02:04:46 +11:00
cd siterepo
./build.sh
rm ./hugo-static/public/manifest.json # Conflicts with main manifest.
cp -r ./assets/* ./assets/.??* ./hugo-static/public/* ../sitegen/