Skip to content

Merge pull request #98 from josephlee222/snyk-fix-ba5d39cad9dce6f8401… #138

Merge pull request #98 from josephlee222/snyk-fix-ba5d39cad9dce6f8401…

Merge pull request #98 from josephlee222/snyk-fix-ba5d39cad9dce6f8401… #138

Workflow file for this run

name: Deployment
on:
push:
branches:
- main
jobs:
build:
name: Deploy Backend
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
cd projects/TProject
git pull
cd server
sudo forever stopall
npm i
sudo forever start index.js