From deb9ca3c572913545f56e4719ef9ca6dc2abdaa7 Mon Sep 17 00:00:00 2001 From: IrosTheBeggar Date: Tue, 8 Jun 2021 14:16:51 -0400 Subject: [PATCH] github action - deploy demo site --- .github/workflows/deploy-demo.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/deploy-demo.yml diff --git a/.github/workflows/deploy-demo.yml b/.github/workflows/deploy-demo.yml new file mode 100644 index 0000000..1775aac --- /dev/null +++ b/.github/workflows/deploy-demo.yml @@ -0,0 +1,23 @@ + +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_PASSWORD }} + port: ${{ secrets.DEMO_SSH_PORT }} + script: | + cd mStream/ + git pull + npm install + pm2 restart all