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 2, 2024
1 parent 28ba58d commit ffd1087
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,12 @@ jobs:
- name: Build
run: npm run build

- name: Deploy to S3
uses: jakejarvis/s3-sync-action@master
- name: Setup AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
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-2' # Set this to your bucket's region
SOURCE_DIR: 'client/build'
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
run: aws s3 sync ./client/build s3://${{ secrets.AWS_S3_BUCKET }} --delete

0 comments on commit ffd1087

Please sign in to comment.