File tree Expand file tree Collapse file tree 2 files changed +52
-2
lines changed Expand file tree Collapse file tree 2 files changed +52
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Build & Deploy API Docs
2
+
3
+ on :
4
+ push :
5
+ branches : [ docs ]
6
+
7
+ permissions :
8
+ actions : read
9
+ pages : write
10
+ id-token : write
11
+
12
+ concurrency :
13
+ group : " pages"
14
+ cancel-in-progress : false
15
+
16
+ jobs :
17
+ build :
18
+ runs-on : windows-latest
19
+ steps :
20
+ # 1. Checkout current main branch into RichCanvas/
21
+ - name : Checkout current branch
22
+ uses : actions/checkout@v4
23
+
24
+ # 2. Checkout v2.4.2 into RichCanvas-2.4.2/
25
+ - name : Checkout v2.4.2
26
+ uses : actions/checkout@v4
27
+ with :
28
+ ref : v2.4.2
29
+ path : RichCanvas-v2.4.2
30
+
31
+ # 3. Setup .NET (if your project needs it for metadata)
32
+ - name : Setup .NET
33
+ uses : actions/setup-dotnet@v4
34
+ with :
35
+ dotnet-version : ' 9.0.x'
36
+
37
+ # 4. Download DocFX
38
+ - run : dotnet tool update -g docfx
39
+ - name : DocFX Build
40
+ working-directory : docs
41
+ run : docfx docfx.json
42
+ continue-on-error : false
43
+
44
+ - name : Upload artifact
45
+ uses : actions/upload-pages-artifact@v3
46
+ with :
47
+ path : ' docs/_site'
48
+ - name : Deploy to GitHub Pages
49
+ id : deployment
50
+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 17
17
"outputFormat" : " markdown" ,
18
18
"src" : [
19
19
{
20
- "src" : " ../RichCanvas-v2.4.2" ,
20
+ "src" : " ../RichCanvas-v2.4.2/RichCanvas " ,
21
21
"files" : [
22
22
" **/*.csproj"
23
23
]
53
53
"pdf" : false
54
54
}
55
55
}
56
- }
56
+ }
You can’t perform that action at this time.
0 commit comments