File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Deploy to S3 (Debug Friendly)
1+ name : Deploy to S3
22
33on :
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"
You can’t perform that action at this time.
0 commit comments