-
-
Notifications
You must be signed in to change notification settings - Fork 20
29 lines (28 loc) · 862 Bytes
/
main.yml
File metadata and controls
29 lines (28 loc) · 862 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
name: Deploy
on:
workflow_dispatch:
env:
WORKING_DIRECTORY: BlazorSchoolDocs
VPS_WEB_DIRECTORY: /home/blazorschool3/client/wwwroot
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Copy web via ssh
uses: garygrossgarten/github-action-scp@master
with:
local: contents
remote: ${{ env.VPS_WEB_DIRECTORY }}
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
- name: Restart BlazorSchool Server service
uses: garygrossgarten/github-action-ssh@master
with:
host: ${{ secrets.HOST }}
command: |
systemctl daemon-reload
systemctl restart BlazorSchool3Server
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}