From dc1ce1e4fc9d03a8cc74f3e75fa453a903eef22f Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Sat, 16 Mar 2024 11:29:52 +0000 Subject: [PATCH] Workflow: Create folder for hugo unpacking. Remove non-existent test script run --- .gitea/workflows/build_and_deploy.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitea/workflows/build_and_deploy.yaml b/.gitea/workflows/build_and_deploy.yaml index 22bd5f9..4ad3cfc 100644 --- a/.gitea/workflows/build_and_deploy.yaml +++ b/.gitea/workflows/build_and_deploy.yaml @@ -25,11 +25,9 @@ jobs: version=$(echo "$url" | grep -oP 'hugo_\K[0-9]+\.[0-9]+\.[0-9]+') echo "Downloaded Hugo version: $version" - name: Unpack Hugo - run: tar -xf /tmp/hugo/* -C ${{ gitea.workspace }}/bin + run: mkdir -p ${{ gitea.workspace }}/bin && /tar -xf /tmp/hugo/* -C ${{ gitea.workspace }}/bin - name: Build the static webpage run: ${{ gitea.workspace }}/bin/hugo --minify - - name: Test static page - run: bash ${{ gitea.workspace }}/bin/test_static_page.sh - name: Create private key run: | echo "${{ secrets.ACT_RUNNER_KEY }}" > /tmp/act_runner_key