From 5b566598215dde23e375e25f2c929f0764f0567f Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Sat, 16 Mar 2024 11:32:53 +0000 Subject: [PATCH] Workflow: Make extracted hugo file executable --- .gitea/workflows/build_and_deploy.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build_and_deploy.yaml b/.gitea/workflows/build_and_deploy.yaml index 46a5fa4..e7d860e 100644 --- a/.gitea/workflows/build_and_deploy.yaml +++ b/.gitea/workflows/build_and_deploy.yaml @@ -25,7 +25,10 @@ jobs: version=$(echo "$url" | grep -oP 'hugo_\K[0-9]+\.[0-9]+\.[0-9]+') echo "Downloaded Hugo version: $version" - name: Unpack Hugo - run: mkdir -p ${{ gitea.workspace }}/bin && tar -xf /tmp/hugo/* -C ${{ gitea.workspace }}/bin + run: | + mkdir -p ${{ gitea.workspace }}/bin + tar -xf /tmp/hugo/* -C ${{ gitea.workspace }}/bin + chmod 700 ${{ gitea.workspace }}/bin/hugo - name: Build the static webpage run: ${{ gitea.workspace }}/bin/hugo --minify - name: Create private key