refactor: [FN-239] 주석 정리 #3
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: develop-cd | |
| on: | |
| push: | |
| branches: [dev] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| env: | |
| S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }} | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "23" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build React app | |
| run: npm run build | |
| # AWS Credentials 설정 | |
| - name: Configure AWS Credentials | |
| uses: aws-actions/configure-aws-credentials@v4 | |
| with: | |
| aws-access-key-id: ${{ secrets.S3_ACCESS_KEY }} | |
| aws-secret-access-key: ${{ secrets.S3_SECRET_KEY }} | |
| aws-region: ${{ secrets.S3_BUCKET_REGION }} | |
| # S3 Sync | |
| - name: Upload to S3 | |
| run: | | |
| aws s3 sync ./dist s3://${{ env.S3_BUCKET_NAME }} --delete |