-
Notifications
You must be signed in to change notification settings - Fork 18
47 lines (38 loc) · 1.04 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
38
39
40
41
42
43
44
45
46
47
name: Build Documentation
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
# Setup .NET SDK
- name: Dotnet Setup
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.x
# Checkout repo
- name: Checkout repo
uses: actions/checkout@v1
with:
fetch-depth: 1
# Install DocFX 2.71.0
- name: Install DocFX
run: dotnet tool update -g docfx --version 2.71.0
- name: Build documentation
run: ./build.bat
- name: SFTP Deploy
uses: wlixcc/SFTP-Deploy-Action@v1.0
with:
username: root
server: 78.47.109.137
#port: # default is 22
# you can copy private_key from your *.pem file, keep format
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
# will put all file under this path
local_path: ./_site/* # default is ./*
# files will copy to under remote_path
remote_path: /var/www-thegraybook # default is /
# sftp args
# args: # optional