Update ManageTask.module.css #97
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 Frontend | |
| on: | |
| push: | |
| branches: [deploy] | |
| jobs: | |
| frontend: | |
| name: Deploy Frontend to S3 | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '22' | |
| - name: Install dependencies | |
| run: | | |
| cd frontend | |
| rm -rf node_modules package-lock.json | |
| npm install | |
| npm install --save-dev vite rollup | |
| #- name: Clean dist | |
| # run: rm -rf frontend/dist | |
| - name: Build frontend | |
| run: | | |
| cd frontend | |
| npm run build | |
| - name: Deploy to S3 | |
| uses: jakejarvis/s3-sync-action@master | |
| with: | |
| args: --delete | |
| env: | |
| AWS_S3_BUCKET: www.pirocheck.org | |
| AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| SOURCE_DIR: frontend/dist | |
| - name: Configure AWS credentials | |
| uses: aws-actions/configure-aws-credentials@v2 | |
| with: | |
| aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| aws-region: us-east-1 | |
| - name: Invalidate CloudFront cache | |
| run: | | |
| aws cloudfront create-invalidation \ | |
| --distribution-id ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }} \ | |
| --paths "/*" | |
| - name: Send Discord notification (Success) | |
| if: success() | |
| run: | | |
| curl -H "Content-Type: application/json" \ | |
| -X POST \ | |
| -d '{ | |
| "embeds": [{ | |
| "title": "🚀 Deploy Frontend 성공!", | |
| "description": "**Branch**: `${{ github.ref }}`\n**Commit**: `${{ github.sha }}`\n🟢 서비스가 정상적으로 배포되었습니다!", | |
| "color": 65353 | |
| }] | |
| }' ${{ secrets.DISCORD_WEBHOOK }} | |
| - name: Send Discord notification (Failure) | |
| if: failure() | |
| run: | | |
| curl -H "Content-Type: application/json" \ | |
| -X POST \ | |
| -d '{ | |
| "embeds": [{ | |
| "title": "❌ Deploy Frontend 실패!", | |
| "description": "**Branch**: `${{ github.ref }}`\n**Commit**: `${{ github.sha }}`\n🔴 배포 중 오류가 발생했습니다. 로그를 확인하세요.", | |
| "color": 16711680 | |
| }] | |
| }' ${{ secrets.DISCORD_WEBHOOK }} |