2023-02-17 02:04:46 +11:00
|
|
|
#!/bin/bash -e
|
|
|
|
set -Eeuo pipefail
|
|
|
|
|
2023-02-18 21:59:10 +11:00
|
|
|
if [[ ! -f hugo/hugo ]] || ( ! ( hugo/hugo version | grep -q extended ) ); then
|
2024-10-12 23:46:47 +11:00
|
|
|
curl -L https://github.com/gohugoio/hugo/releases/download/v0.135.0/hugo_extended_0.135.0_linux-amd64.tar.gz | tar -xvz -C hugo/
|
2023-02-18 21:40:21 +11:00
|
|
|
fi
|
|
|
|
export PATH="$(pwd)/hugo:$PATH"
|
|
|
|
|
2023-02-17 02:04:46 +11:00
|
|
|
cd siterepo
|
2024-01-07 11:06:19 +11:00
|
|
|
npm config set registry http://172.19.10.7:4873/
|
2023-02-17 02:04:46 +11:00
|
|
|
./build.sh
|
2023-02-18 22:02:23 +11:00
|
|
|
rm ./hugo-static/public/manifest.json # Conflicts with main manifest.
|
2023-02-18 21:40:21 +11:00
|
|
|
cp -r ./assets/* ./assets/.??* ./hugo-static/public/* ../sitegen/
|
2024-10-12 23:46:47 +11:00
|
|
|
mkdir -p ../sitegen/worldwideportal
|
|
|
|
cp -r ./worldwideportal-static/public/* ../sitegen/worldwideportal
|