From 894e259c336ea4ba2def038d624a9df97d8fe5cd Mon Sep 17 00:00:00 2001 From: darnodo Date: Wed, 19 Nov 2025 20:19:47 +0100 Subject: [PATCH] Install Hugo and Deploy to Scaleway - Added wget to install dependencies - Changed the Hugo install process to use the deb package - Changed the Hugo deploy command to use Scaleway --- .gitea/workflows/deploy.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index ac4f7a6..b7d8282 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -19,7 +19,12 @@ jobs: - name: Install dependencies run: | apt-get update - apt-get install -y git curl ca-certificates + apt-get install -y git curl ca-certificates wget + + - name: Install Hugo + run: | + wget https://github.com/gohugoio/hugo/releases/download/v0.152.2/hugo_extended_withdeploy_0.152.2_linux-amd64.deb -O /tmp/hugo.deb + dpkg -i /tmp/hugo.deb - name: Checkout code run: | @@ -27,19 +32,12 @@ jobs: cd /tmp/workspace git checkout ${{ github.sha }} - - name: Install Hugo - run: | - curl -L https://github.com/gohugoio/hugo/releases/download/v0.108.0/hugo_0.108.0_linux-amd64.tar.gz -o hugo.tar.gz - tar -xzf hugo.tar.gz - mv hugo /usr/local/bin/ - hugo version - - name: Build site - run: hugo + run: /usr/local/bin/hugo working-directory: /tmp/workspace - - name: Deploy to S3 - run: hugo deploy --force --maxDeletes -1 + - name: Deploy to Scaleway + run: /usr/local/bin/hugo deploy --force --maxDeletes -1 working-directory: /tmp/workspace env: AWS_ACCESS_KEY_ID: ${{ secrets.SCW_ACCESS_KEY }} -- 2.52.0