diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 8774584..0f13cf3 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -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