Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ppochaco authored Nov 4, 2024
1 parent 522aa13 commit def85d0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,20 @@ jobs:
- name: react build
run: npm run build
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AKIAQIJRRWVMEHBCW6VJ }}
aws-secret-access-key: ${{ secrets.swQY0oZHz5JoOou0o5eDikM9CB4f7J3TujhV1Gxl }}
aws-region: ap-southeast-2
aws-access-key-id: ${{ secrets.AWS_S3_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_S3_SECRET_ACCESS_KEY_ID }}
aws-region: us-east-1
- name: Upload to S3
env:
BUCKET_NAME: ${{ secrets.whokie }}
BUCKET_NAME: ${{ secrets.AWS_S3_BUCKET_NAME }}
run: |
aws s3 sync \
./build s3://$whokie
./build s3://whokie
- name: CloudFront Invalidation
env:
CLOUD_FRONT_ID: ${{ secrets.E34R6P8LF5T74E }}
CLOUD_FRONT_ID: ${{ secrets.AWS_CLOUDFRONT_ID }}
run: |
aws cloudfront create-invalidation \
--distribution-id $CLOUD_FRONT_ID --paths /*
Expand Down

0 comments on commit def85d0

Please sign in to comment.