Skip to content

feat: *

feat: * #27

Workflow file for this run

name: Node Github CI
on:
push:
branches:
- main
jobs:
deploy:
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 rocketconnect.co.uk
git reset --hard
git pull origin main
cd ./frontend
npm install
npm run build
cd ../backend
npm install
npm run build
pm2 restart website