Skip to content

러너 게시물 상세 페이지 캐싱 오류 수정, 에러 발생 시 전체 동작이 정지되지 않도록 수정 (#645) #45

러너 게시물 상세 페이지 캐싱 오류 수정, 에러 발생 시 전체 동작이 정지되지 않도록 수정 (#645)

러너 게시물 상세 페이지 캐싱 오류 수정, 에러 발생 시 전체 동작이 정지되지 않도록 수정 (#645) #45

name: frontend_cd
on:
push:
branches:
- deploy/FE
defaults:
run:
working-directory: ./frontend
permissions:
contents: read
jobs:
build-and-upload:
runs-on: ubuntu-latest
steps:
- name: Setup Repository
uses: actions/checkout@v3
- name: Setup node with cache
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: Setup environment variables
run: |
echo "REACT_APP_BASE_URL=${{ secrets.REACT_APP_DEV_BASE_URL }}
REACT_APP_CHANNELTALK_KEY=${{ secrets.REACT_APP_CHANNELTALK_KEY }}
" >> .env
- name: Install Dependancies
run: npm install
- name: Build App
run: npm run build
- name: Upload frontend build file to artifact
uses: actions/upload-artifact@v3
with:
name: FrontendApplication
path: frontend/dist
deploy:
needs: build-and-upload
runs-on: [self-hosted, Linux, ARM64, dev]
steps:
- name: Remove previous version app
working-directory: frontend/dist
run: rm -rf dist
- name: Download build file from artifact
uses: actions/download-artifact@v3
with:
name: FrontendApplication
path: frontend/dist