Skip to content

Merge pull request #1 from rocket-connect/new-site #45

Merge pull request #1 from rocket-connect/new-site

Merge pull request #1 from rocket-connect/new-site #45

Workflow file for this run

name: rconnect.tech
on:
push:
branches:
- main
jobs:
deploy-preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-project
- 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 ./rconnect.tech
git reset --hard
git pull origin main
npm install
npm run build
pm2 restart rconnect.tech