Compare commits

..

3 Commits

Author SHA1 Message Date
caa3f2e617 Merge pull request 'Install AWS CLI and deploy with S3 sync' (#11) from update-ci into main
Reviewed-on: #11
2025-11-19 16:13:11 +00:00
6b9655f0b1 Merge branch 'main' into update-ci
Some checks failed
Deploy to Scaleway / build-and-deploy (pull_request) Failing after 40s
2025-11-19 16:13:02 +00:00
darnodo
6c5debee3f 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.
2025-11-19 17:12:35 +01:00

View File

@@ -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 }}