Feat: user logo (#36) #84
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |