Skip to content

Commit

Permalink
add manual dispatch and cloudfront invalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
rshewitt committed May 5, 2024
1 parent 91b0eac commit fac9ca4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Test and Deploy

on:
workflow_dispatch:
pull_request:
branches: [ main ]
push:
Expand Down Expand Up @@ -41,4 +42,12 @@ jobs:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-2
- run: aws s3 sync ./out s3://mchewittwedding.com
- run: aws s3 sync ./out s3://mchewittwedding.com
- name: Invalidate Cloudfront
uses: chetan/[email protected]
env:
DISTRIBUTION: E1OUB9BRZ80YGI
PATHS: /*
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: us-east-2

0 comments on commit fac9ca4

Please sign in to comment.