File tree Expand file tree Collapse file tree 1 file changed +27
-25
lines changed Expand file tree Collapse file tree 1 file changed +27
-25
lines changed Original file line number Diff line number Diff line change 1
- # Your GitHub workflow file under .github/workflows/
2
- # Trigger the action on push to main
3
1
name : docs
4
2
on :
5
3
workflow_dispatch :
9
7
push :
10
8
branches :
11
9
- " main"
10
+ - " dev"
12
11
13
12
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14
13
permissions :
@@ -21,27 +20,30 @@ permissions:
21
20
concurrency :
22
21
group : " pages"
23
22
cancel-in-progress : false
24
-
23
+
25
24
jobs :
26
- publish-docs :
27
- runs-on : ubuntu-latest
28
- steps :
29
- - name : Checkout
30
- uses : actions/checkout@v4
31
- - name : dotnet Setup
32
- uses : actions/setup-dotnet@v4
33
- with :
34
- dotnet-version : |
35
- 8.x
36
- 9.x
37
- 10.x
38
- - run : dotnet tool update -g docfx
39
- - run : docfx docs/docfx.json
40
- - name : Upload artifact
41
- uses : actions/upload-pages-artifact@v3
42
- with :
43
- # Upload entire repository
44
- path : ' docs/_site'
45
- - name : Deploy to GitHub Pages
46
- id : deployment
47
- uses : actions/deploy-pages@v4
25
+ publish-docs :
26
+ runs-on : ubuntu-latest
27
+ steps :
28
+ - name : Checkout
29
+ uses : actions/checkout@v4
30
+ - name : dotnet Setup
31
+ uses : actions/setup-dotnet@v4
32
+ with :
33
+ dotnet-version : |
34
+ 8.x
35
+ 9.x
36
+ 10.x
37
+ - name : Setup documentation
38
+ run : |
39
+ mv README.md docs/index.md
40
+ mv README.zh.md docs/README.zh.md
41
+ dotnet tool update -g docfx
42
+ docfx docs/docfx.json
43
+ - name : Upload artifact
44
+ uses : actions/upload-pages-artifact@v3
45
+ with :
46
+ path : ' docs/_site'
47
+ - name : Deploy to GitHub Pages
48
+ id : deployment
49
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments