Skip to content

Commit

Permalink
Create deploytoS3.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewEls authored Jun 1, 2024
1 parent ff0dcae commit 02bc2ba
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/deploytoS3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploying to S3 Bucket

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks --delete --exclude '.git*/*'
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{secrets.AWS_REGION}}
SOURCE_DIR: "public"

0 comments on commit 02bc2ba

Please sign in to comment.