Releases: tiagocolombo/backup-to-s3
Releases · tiagocolombo/backup-to-s3
v1.0.0
Description
This is the initial release of the Backup to S3 GitHub Action. This action allows you to back up your GitHub repository to an AWS S3 bucket.
Features:
- Archive the entire repository into a zip file.
- Automatically include a timestamp in the archive filename for unique backups.
- Upload the zip file to a specified S3 bucket.
Inputs:
s3-bucket
: The name of the S3 bucket (required).aws-access-key-id
: AWS Access Key ID (required).aws-secret-access-key
: AWS Secret Access Key (required).aws-region
: AWS Region (required).
Example Usage:
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: YOUR_USERNAME/YOUR_REPOSITORY@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'