File tree Expand file tree Collapse file tree 1 file changed +14
-13
lines changed
Expand file tree Collapse file tree 1 file changed +14
-13
lines changed Original file line number Diff line number Diff line change 1- #
2- name : " docfx"
1+ name : DocFX
32
43on :
54 push :
6- branches : [ " master" ]
5+ branches : [ master ]
76 pull_request :
8- branches : [ "master" ]
9- schedule :
10- - cron : ' 39 16 * * 5'
11-
7+ branches : [ master ]
8+
129jobs :
1310 generate_and_publish_docs :
1411 runs-on : ubuntu-latest
1512 name : Generate and publish the docs
1613 steps :
17- - uses : actions/checkout@v1
18- name : Checkout code
19- 20- name : Build Documentation
14+ - uses : actions/checkout@v2
15+ - name : Setup .NET
16+ uses : actions/setup-dotnet@v1
2117 with :
22- args : doc/docfx.json
18+ dotnet-version : 9.0.x
19+ - name : Install dependencies
20+ run : dotnet tool install --global docfx
21+ - name : Build Documentation
22+ working-directory : ./doc
23+ run : docfx docfx.json
2324 - uses : maxheld83/ghpages@master
2425 name : Publish Documentation on GitHub Pages
2526 env :
26- BUILD_DIR : _site # docfx's default output directory is _site
27+ BUILD_DIR : doc/ _site # docfx's default output directory is _site
2728 GH_PAT : ${{ secrets.GH_PAT }} # See https://github.com/maxheld83/ghpages
You can’t perform that action at this time.
0 commit comments