Skip to content

Commit

Permalink
Update deploy-to-dev.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ankudovychm authored Dec 9, 2024
1 parent fcb88f5 commit c0d05bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy-to-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ jobs:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1-node16
with:
aws-access-key-id: ${{ secrets.DEV-AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.DEV-AWS_SECRET_ACCESS_KEY }}
aws-access-key-id: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_DEFAULT_REGION }}

- name: Deploy site to S3 bucket
run: aws s3 sync _site/ s3://${{ secrets.DEV-S3_BUCKET }} --delete
run: aws s3 sync _site/ s3://${{ secrets.DEV_S3_BUCKET }} --delete

- name: Invalidate CloudFront Cache
run: aws cloudfront create-invalidation --distribution-id ${{ secrets.DEV-CLOUDFRONT_DISTRIBUTION_ID }} --paths "/*"
run: aws cloudfront create-invalidation --distribution-id ${{ secrets.DEV_CLOUDFRONT_DISTRIBUTION_ID }} --paths "/*"

0 comments on commit c0d05bf

Please sign in to comment.