File tree Expand file tree Collapse file tree 2 files changed +24
-8
lines changed Expand file tree Collapse file tree 2 files changed +24
-8
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "version" : 1 ,
3
+ "isRoot" : true ,
4
+ "tools" : {
5
+ "docfx" : {
6
+ "version" : " 2.78.3" ,
7
+ "commands" : [
8
+ " docfx"
9
+ ],
10
+ "rollForward" : false
11
+ }
12
+ }
13
+ }
Original file line number Diff line number Diff line change 5
5
branches :
6
6
- master
7
7
- feature/docs
8
+ pull_request :
9
+ branches :
10
+ - master
8
11
9
12
jobs :
10
13
run-docfx :
@@ -19,15 +22,15 @@ jobs:
19
22
with :
20
23
repository : Cysharp/DocfxTemplate
21
24
path : docs/_DocfxTemplate
22
- - uses : Kirbyrawr/docfx-action@db9a22c8fe1e8693a2a21be54cb0b87dfaa72cc4
23
- name : Docfx metadata
24
- with :
25
- args : metadata docs/docfx.json
26
- - uses : Kirbyrawr/docfx-action@db9a22c8fe1e8693a2a21be54cb0b87dfaa72cc4
27
- name : Docfx build
28
- with :
29
- args : build docs/docfx.json
25
+ - uses : Cysharp/Actions/.github/actions/setup-dotnet@main
26
+ - name : dotnet tool restore
27
+ run : dotnet tool restore
28
+ - name : Docfx metadata
29
+ run : dotnet docfx metadata docs/docfx.json
30
+ - name : Docfx build
31
+ run : dotnet docfx build docs/docfx.json
30
32
- name : Publish to GitHub Pages
33
+ if : ${{ github.event_name != 'pull_request' }}
31
34
uses : peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
32
35
with :
33
36
github_token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments