diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3798c05..7a92f57 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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