Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lavanya-sharma-clouddrove authored Aug 21, 2024
1 parent 4f0870e commit d53aded
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4 # Use the latest version compatible with Node.js 20

- name: Set up AWS CLI
uses: aws-actions/configure-aws-credentials@v2
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v3 # Compatible with Node.js 20
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-2 # Replace with your region
aws-region: ${{ secrets.AWS_REGION }}

- name: Sync files to S3
run: |
aws s3 sync ./ s3://bucket-static-actions --delete
aws s3 sync . s3://${{ secrets.S3_BUCKET_NAME }} --delete

0 comments on commit d53aded

Please sign in to comment.