Skip to content

Merge pull request #91 from Asadaaaaa/dev/Asadaaaaa #91

Merge pull request #91 from Asadaaaaa/dev/Asadaaaaa

Merge pull request #91 from Asadaaaaa/dev/Asadaaaaa #91

Workflow file for this run

name: Sersow API Staging
on:
push:
branches: [ "staging" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@v0.1.8
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
cd app/sersow/controller/staging
git reset --hard HEAD
git switch staging
git pull origin staging
npm i
pm2 restart sersow-controller-staging