forked from Pawl-Patrol/Dynamic-Voice-Channels
-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (34 loc) · 962 Bytes
/
deploy.yml
File metadata and controls
36 lines (34 loc) · 962 Bytes
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
name: deploy to VPS
on:
release:
types: [published]
workflow_dispatch:
jobs:
build:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: copy sources via scp
uses: appleboy/scp-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
passphrase : ${{ secrets.SSH_KEY_PASSPHRASE }}
source: "*"
target: "bot"
- name: setup dependencies
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
passphrase : ${{ secrets.SSH_KEY_PASSPHRASE }}
script: |
cd bot
python3 -m venv env
source env/bin/activate
python -m pip install --upgrade pip
pip install -r requirements.txt
systemctl --user restart dvc