From 6c5debee3fe6c59cba6d652c55e55a125d269c4a Mon Sep 17 00:00:00 2001 From: darnodo Date: Wed, 19 Nov 2025 17:12:35 +0100 Subject: [PATCH] Install AWS CLI and deploy with S3 sync The Hugo native deployment was not working correctly with the Scaleway object storage. This commit installs the AWS CLI and uses `aws s3 sync` instead. --- .gitea/workflows/deploy.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 19e5f61..7062dcb 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -30,9 +30,16 @@ jobs: - name: Build Hugo site run: hugo --minify - - name: Deploy to Object Storage (Hugo native) + - name: Install AWS CLI run: | - hugo deploy --force --maxDeletes -1 + apt-get update + apt-get install -y awscli + + - name: Deploy to Object Storage + run: | + aws s3 sync public/ s3://notebook-arnodo-fr/ \ + --endpoint-url=https://s3.fr-par.scw.cloud \ + --delete env: AWS_ACCESS_KEY_ID: ${{ secrets.SCW_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.SCW_SECRET_ACCESS_KEY }}