-
Notifications
You must be signed in to change notification settings - Fork 64
37 lines (33 loc) · 1.01 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Youtube Music Deployment
on:
push:
branches: [ staging ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: auto deploy steps
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.ZURI_HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
script: |
cd /var/www/zuri.chat/zuriplugins/music_plugin/staging/zc_plugin_youtube_music_video
git stash
git pull
cd root
yarn install
yarn build
cd ../server/client
yarn build
yarn install
cd ..
source .venv/bin/activate
pip3 install -r requirements.txt --upgrade
python3 manage.py collectstatic --noinput
pkill -u ${{secrets.USERNAME}} gunicorn
pm2 restart music_plugin_staging