fix: deveops desgin #56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Static Site | |
on: | |
push: | |
branches: | |
- main # Adjust to your default branch | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up AWS CLI | |
uses: aws-actions/configure-aws-credentials@v3 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ secrets.AWS_REGION }} | |
- name: Debug Info | |
run: | | |
echo "S3_BUCKET_NAME: $S3_BUCKET_NAME" | |
echo "Current directory contents:" | |
ls -la | |
aws --version | |
- name: Sync to S3 | |
run: | | |
echo "Starting sync to S3 bucket..." | |
aws s3 sync ./ s3://$S3_BUCKET_NAME --acl public-read --delete --exact-timestamps | |
env: | |
S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }} |