Skip to content

Commit

Permalink
add s3 sync action
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelT372 committed Jan 12, 2024
1 parent 36f6fda commit 1786650
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/s3-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Sync to S3

on: [push, pull_request]

jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: jakejarvis/s3-sync-action@master
env:
AWS_S3_BUCKET: ${{ vars.ENGRID_S3_BUCKET_NAME }}
AWS_ACCESS_KEY_ID: ${{ secrets.ENGRID_S3_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.ENGRID_S3_SECRET_KEY }}
SOURCE_DIR: 'dist'
DEST_DIR: '${{ github.event.repository.name }}/${{ github.head_ref || github.ref_name }}'

0 comments on commit 1786650

Please sign in to comment.