Skip to content

Feat: sendFile 경로 변경 #31

Feat: sendFile 경로 변경

Feat: sendFile 경로 변경 #31

Workflow file for this run

name: GCP CI/CD
on:
push:
branches: [ main, Backend ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using ssh key
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }}
#passphrase: ${{ secrets.PASSPHRASE }}
port: 22
script: |
cd ${{ secrets.PWD }}
git pull origin main
#PR_BRANCH="${{ github.head_ref }}"
cd ${{ secrets.PWD }}/Backend/Frontend/creative
#메모리 오버 방지를 위해 기존 서버 동작 중지
pm2 stop Traffic
#의존성 설치
npm install
#npm run build 까지 추가로 진행
npm run build
cd ${{ secrets.PWD }}/Backend
npm install
pm2 restart Traffic