A GitHub Action to back up a repository to AWS S3.
Input | Description | Required |
---|---|---|
s3-bucket |
The name of the S3 bucket | true |
aws-access-key-id |
AWS Access Key ID | true |
aws-secret-access-key |
AWS Secret Access Key | true |
aws-region |
AWS Region | true |
name: Backup to S3
on:
push:
branches:
- main
jobs:
backup:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Backup repository to S3
uses: tiagocolombo/backup-to-s3@v1
with:
s3-bucket: 'your-s3-bucket-name'
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: 'your-aws-region'