Skip to content

[Feat] 프로젝트 별 태스크 목록 조회 API 구현 #54

[Feat] 프로젝트 별 태스크 목록 조회 API 구현

[Feat] 프로젝트 별 태스크 목록 조회 API 구현 #54

Workflow file for this run

name: CI/CD Pipeline
on:
pull_request:
branches: [ dev ]
push:
branches: [ dev ]
jobs:
ci:
name: CI
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: '9'
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
cd:
name: CD
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- name: connect to server via ssh
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
script: |
cd /var/www/harmony
git fetch
git pull
chmod +wx apps/server
rm apps/server/.env
echo "${{ secrets.SERVER_ENV }}" >> apps/server/.env
chmod +x scripts/deploy.sh
./scripts/deploy.sh