diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 768017f66..270b6dde1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,7 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: - hugo-version: '0.76.5' + hugo-version: '0.120.4' - name: Build the website run: ./scripts/build_website.sh diff --git a/scripts/build_website.sh b/scripts/build_website.sh index b96ab63d5..2ca774940 100755 --- a/scripts/build_website.sh +++ b/scripts/build_website.sh @@ -6,6 +6,7 @@ fi echo "Using BASE_URL=$BASE_URL" npm install +mkdir -p public/ hugo --minify --buildDrafts --baseUrl="$BASE_URL" cp static/googlec8ce605468a38232.html public/ cp static/robots.txt public/