Add files via upload #92
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |