Skip to content

Merge pull request #141 from rocket-connect/dependabot/npm_and_yarn/t… #171

Merge pull request #141 from rocket-connect/dependabot/npm_and_yarn/t…

Merge pull request #141 from rocket-connect/dependabot/npm_and_yarn/t… #171

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
jobs:
deploy-playground:
runs-on: ubuntu-latest
steps:
- name: SSH and deploy node app
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
script: |
export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh
cd ./gqlpt
git reset --hard
git pull origin main
pnpm i
pnpm build
cd ./apps/backend
pm2 restart gqlpt.dev