2023-07-25 21:07:23 +01:00
|
|
|
name: Sync gmem.ca
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
2023-07-25 21:25:15 +01:00
|
|
|
sync:
|
2023-07-25 21:07:23 +01:00
|
|
|
runs-on: debian-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: https://github.com/RouxAntoine/checkout@v3.5.4
|
|
|
|
with:
|
|
|
|
ref: trunk
|
|
|
|
- name: Install AWS CLI
|
|
|
|
run: |
|
|
|
|
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
|
|
|
|
unzip awscliv2.zip
|
2023-07-25 21:08:13 +01:00
|
|
|
./aws/install
|
2023-07-25 21:07:23 +01:00
|
|
|
- name: Sync with S3
|
|
|
|
run: |
|
2023-07-25 21:24:40 +01:00
|
|
|
aws s3 sync ./gmem.ca s3://gmem.ca --size-only
|
2023-07-25 21:07:23 +01:00
|
|
|
env:
|
|
|
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }}
|
|
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY_SECRET }}
|
|
|
|
AWS_DEFAULT_REGION: 'eu-west-1'
|