Skip to content

Commit 64f0249

Browse files
committed
Add GitHub Actions deploy workflow fin
1 parent cd2b47f commit 64f0249

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy to S3 (Debug Friendly)
1+
name: Deploy to S3
22

33
on:
44
push:
@@ -10,30 +10,15 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
# Step 1: Checkout code
1413
- name: Checkout code
1514
uses: actions/checkout@v3
1615

17-
# Step 2: List all files (to verify repo structure)
18-
- name: List all repo files
19-
run: ls -R
20-
21-
# Step 3: Configure AWS credentials
2216
- name: Configure AWS Credentials
2317
uses: aws-actions/configure-aws-credentials@v2
2418
with:
2519
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
2620
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
2721
aws-region: ap-south-1
2822

29-
# Step 4: Test AWS access
30-
- name: Verify access to S3 bucket
31-
run: aws s3 ls s3://devops-portfolio-likeshbarve
32-
33-
# Step 5: Sync files to S3
3423
- name: Sync files to S3
3524
run: aws s3 sync ./ s3://devops-portfolio-likeshbarve --acl public-read --delete
36-
37-
# Step 6: Confirm deployment
38-
- name: Confirm S3 Deployment
39-
run: echo "Deployment completed. Check your bucket: s3://devops-portfolio-likeshbarve"

0 commit comments

Comments
 (0)