Install AWS CLI and deploy with S3 sync #11

Merged
Damien merged 2 commits from update-ci into main 2025-11-19 16:13:11 +00: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 }}