24 lines
673 B
YAML
24 lines
673 B
YAML
|
name: Sync gmem.ca
|
||
|
on: [push]
|
||
|
|
||
|
jobs:
|
||
|
lint:
|
||
|
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
|
||
|
sudo ./aws/install
|
||
|
- name: Sync with S3
|
||
|
run: |
|
||
|
aws s3 sync ./gmem.ca s3://gmem.ca
|
||
|
env:
|
||
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }}
|
||
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY_SECRET }}
|
||
|
AWS_DEFAULT_REGION: 'eu-west-1'
|