Skip to content

Commit 9e04f16

Browse files
committed
Add GitHub Actions deploy workflow fin1
1 parent 64f0249 commit 9e04f16

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
jobs:
99
deploy:
1010
runs-on: ubuntu-latest
11-
1211
steps:
1312
- name: Checkout code
1413
uses: actions/checkout@v3
@@ -21,4 +20,12 @@ jobs:
2120
aws-region: ap-south-1
2221

2322
- name: Sync files to S3
24-
run: aws s3 sync ./ s3://devops-portfolio-likeshbarve --acl public-read --delete
23+
run: |
24+
echo "Syncing website files to S3..."
25+
aws s3 sync ./ s3://devops-portfolio-likeshbarve --acl public-read --delete
26+
27+
- name: Invalidate CloudFront
28+
run: |
29+
DISTRIBUTION_ID=E1AENBSNPXIBXG
30+
echo "Creating CloudFront invalidation..."
31+
aws cloudfront create-invalidation --distribution-id E1AENBSNPXIBXG --paths "/*"

0 commit comments

Comments
 (0)