Skip to content

Update cd.yml

Update cd.yml #2

Workflow file for this run

name: GoTo CD
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Deploy using ssh
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: 22
script: |
cd /home/goto/GoTo/
git pull origin master
git status
cd server
npm install --only=prod
pm2 restart gotoServer