mirror of
https://github.com/IrosTheBeggar/mStream.git
synced 2025-10-27 07:31:02 +00:00
github action - deploy demo site
This commit is contained in:
parent
4aff6ee524
commit
deb9ca3c57
23
.github/workflows/deploy-demo.yml
vendored
Normal file
23
.github/workflows/deploy-demo.yml
vendored
Normal file
@ -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
|
||||
Loading…
Reference in New Issue
Block a user