Skip to content

Merge pull request #86 from Asadaaaaa/dev/zkaa #48

Merge pull request #86 from Asadaaaaa/dev/zkaa

Merge pull request #86 from Asadaaaaa/dev/zkaa #48

Workflow file for this run

name: Sersow Web CD 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/web/staging
git reset --hard HEAD
git pull origin staging
npm i
npm run build
pm2 restart sersow-web-staging