Skip to content

Feat: user logo (#36) #84

Feat: user logo (#36)

Feat: user logo (#36) #84

Workflow file for this run

name: Deploy Dev
on:
push:
branches:
- dev
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout to repo
uses: actions/checkout@v4
- name: Copy files to VPS
uses: appleboy/scp-action@v0.1.0
with:
host: ${{ secrets.SERVER_IP }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
source: './*'
target: '/root/apps/challengelogger/server'
- name: Run command to restart the app
uses: appleboy/ssh-action@v0.1.0
with:
host: ${{ secrets.SERVER_IP }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
cd /root/apps/challengelogger/server
nvm install
corepack enable
yarn install --frozen-lockfile
yarn build
yarn generateSwaggerDocs
yarn db:migrate
pm2 restart /root/apps/challengelogger/ecosystem.config.js