Skip to content

feat: 회원탈퇴 추가 #173

feat: 회원탈퇴 추가

feat: 회원탈퇴 추가 #173

Workflow file for this run

name: CI/CD for IMFACT-FE
on:
push:
branches: ["main"]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: imfact-app/package-lock.json
- name: Install dependencies
run: npm ci
working-directory: ./imfact-app
- name: Build
run: npx nx build web
working-directory: ./imfact-app
env:
VITE_API_BASE_URL: ${{ secrets.VITE_API_BASE_URL }}
VITE_GOOGLE_AUTH_CLIENT_ID: ${{ vars.VITE_GOOGLE_AUTH_CLIENT_ID }}
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-northeast-2
- name: Deploy to S3 with correct MIME types
working-directory: ./imfact-app/apps/web/dist
run: |
aws s3 sync . s3://${{ secrets.S3_BUCKET_NAME }} --exclude "*" --include "*.html" --content-type "text/html"
aws s3 sync . s3://${{ secrets.S3_BUCKET_NAME }} --exclude "*" --include "*.css" --content-type "text/css"
aws s3 sync . s3://${{ secrets.S3_BUCKET_NAME }} --exclude "*" --include "*.js" --content-type "text/javascript"
aws s3 sync . s3://${{ secrets.S3_BUCKET_NAME }} --exclude "*" --include "*.svg" --content-type "image/svg+xml"
aws s3 sync . s3://${{ secrets.S3_BUCKET_NAME }} --exclude "*.html" --exclude "*.css" --exclude "*.js" --exclude "*.svg" --delete
- name: Invalidate CloudFront Cache
run: |
aws cloudfront create-invalidation \
--distribution-id ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }} \
--paths "/*"