File tree Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change 5
5
branches : [master]
6
6
7
7
jobs :
8
- gh-pages :
8
+ build- gh-pages :
9
9
runs-on : windows-latest
10
10
steps :
11
11
- uses : actions/checkout@v2
@@ -18,16 +18,31 @@ jobs:
18
18
- name : Install DocFX & Rsync
19
19
uses : crazy-max/ghaction-chocolatey@v1
20
20
with :
21
- args : install docfx rsync -y
21
+ args : install docfx -y
22
22
- name : Restore Solution
23
23
run : dotnet restore
24
24
- name : Build Solution
25
25
run : dotnet build
26
26
- name : Build Documentation
27
27
run : docfx docs/docfx.json
28
- - name : Deploy
28
+ - name : Upload docs artifact
29
+ uses : actions/upload-artifact@v2
30
+ with :
31
+ name : pages
32
+ path : docs/public
33
+ deploy-gh-pages :
34
+ runs-on : ubuntu-latest
35
+ needs : build-gh-pages
36
+ steps :
37
+ - name : Download docs artifact
38
+ id : download
39
+ uses : actions/download-artifact@v2
40
+ with :
41
+ name : pages
42
+ path : public
43
+ - name : Deploy gh pages
29
44
30
45
with :
31
46
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
32
47
BRANCH : gh-pages
33
- FOLDER : docs/public
48
+ FOLDER : ${{ steps.download.outputs.download-path }}
You can’t perform that action at this time.
0 commit comments