infra/.gitea/workflows/sync-gmemca.yml
Gabriel Simmer 19b9aad07e
Move to mainline checkout actions
We're now running on git.gmem.ca so this workaround is no longer needed
2023-08-15 09:10:13 +01:00

28 lines
742 B
YAML

name: Sync gmem.ca
on:
push:
paths:
- 'gmem.ca/**'
- '.gitea/workflows/sync-gmemca.yml'
jobs:
sync:
runs-on: debian-latest
steps:
- name: Checkout code
uses: actions/checkout@v3.5.3
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
./aws/install
- name: Sync with S3
run: |
aws s3 sync ./gmem.ca s3://gmem.ca --size-only --delete
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY_SECRET }}
AWS_DEFAULT_REGION: 'eu-west-1'