Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanireland authored May 1, 2024
1 parent 6497d0e commit ae7799f
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,13 @@ jobs:
- name: Build
run: npm run build

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
- name: Deploy to S3
uses: jakejarvis/s3-sync-action@master
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: 'us-east-2'

- name: Sync directory to S3
uses: aws-actions/amazon-s3-sync@v1
with:
args: --acl public-read --delete
source-dir: build
destination: ${{ secrets.AWS_S3_BUCKET }}
args: --acl public-read --follow-symlinks --delete
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: 'us-east-1' # Set this to your bucket's region
SOURCE_DIR: 'build'

0 comments on commit ae7799f

Please sign in to comment.