mStream/.github/workflows/deploy-demo.yml
2021-06-08 14:54:42 -04:00

24 lines
493 B
YAML

name: Deploy Demo Site
on:
release:
types: [published]
jobs:
deploy-demo:
runs-on: ubuntu-latest
steps:
- name: pull changes
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.DEMO_HOST }}
username: ${{ secrets.DEMO_SSH_USERNAME }}
key: ${{ secrets.DEMO_SSH_KEY }}
port: ${{ secrets.DEMO_SSH_PORT }}
script: |
cd mStream/
git pull
npm install --production
pm2 restart all