From 864b0daa4e0e9cd3d79c14f6b95174f7b88f0e6d Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Sat, 16 Mar 2024 12:09:49 +0000 Subject: [PATCH] Workflow: Use an existing hugo action smh --- .gitea/workflows/build_and_deploy.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/build_and_deploy.yaml b/.gitea/workflows/build_and_deploy.yaml index d2f57b9..b47caeb 100644 --- a/.gitea/workflows/build_and_deploy.yaml +++ b/.gitea/workflows/build_and_deploy.yaml @@ -17,13 +17,14 @@ jobs: with: submodules: 'recursive' - name: Install apt packages - run: apt update && apt install -y jq rsync hugo - - name: Build the static webpage - run: | - pwd - cat hugo.toml - hugo --help - hugo --minify + run: apt update && apt install -y jq rsync + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: '0.123.8' + extended: true + - name: Build + run: hugo --minify - name: Create private key run: | echo "${{ secrets.ACT_RUNNER_KEY }}" > /tmp/act_runner_key