Merge pull request 'Install AWS CLI and deploy with S3 sync' (#11) from update-ci into main

Reviewed-on: #11
This commit was merged in pull request #11.
This commit is contained in:
2025-11-19 16:13:11 +00:00

View File

@@ -30,9 +30,16 @@ jobs:
- name: Build Hugo site - name: Build Hugo site
run: hugo --minify run: hugo --minify
- name: Deploy to Object Storage (Hugo native) - name: Install AWS CLI
run: | 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: env:
AWS_ACCESS_KEY_ID: ${{ secrets.SCW_ACCESS_KEY_ID }} AWS_ACCESS_KEY_ID: ${{ secrets.SCW_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.SCW_SECRET_ACCESS_KEY }} AWS_SECRET_ACCESS_KEY: ${{ secrets.SCW_SECRET_ACCESS_KEY }}