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.
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user