Skip to content

Merge pull request #91 from Asadaaaaa/staging #17

Merge pull request #91 from Asadaaaaa/staging

Merge pull request #91 from Asadaaaaa/staging #17

Workflow file for this run

name: Sersow Web CD Production
on:
push:
branches: [ "main" ]
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/production
git reset --hard HEAD
git pull origin main
npm i
npm run build
pm2 restart sersow-web-production