File tree Expand file tree Collapse file tree 1 file changed +22
-14
lines changed Expand file tree Collapse file tree 1 file changed +22
-14
lines changed Original file line number Diff line number Diff line change @@ -22,27 +22,35 @@ jobs:
22
22
runs-on : windows-latest
23
23
24
24
steps :
25
- - uses : actions/checkout@v2
25
+ - uses : actions/checkout@v4
26
26
27
- - name : Setup .NET 6.0
28
- uses : actions/setup-dotnet@v1
27
+ - name : Setup .NET 8
28
+ uses : actions/setup-dotnet@v4
29
29
with :
30
- dotnet-version : 6 .0.x
30
+ dotnet-version : 8 .0.x
31
31
32
- - name : Setup DocFX
33
- uses : crazy-max/ghaction-chocolatey@v1
34
- with :
35
- args : install docfx
32
+ - name : Update DocFX
33
+ run : dotnet tool update -g docfx
36
34
37
35
- name : DocFX Build
38
36
working-directory : docs
39
37
run : docfx .\docfx.json
40
38
continue-on-error : false
41
39
42
- - name : Publish
43
- if : github.event_name == 'push'
44
- uses : peaceiris/actions-gh-pages@v3
40
+ - name : Upload artifact
41
+ uses : actions/upload-pages-artifact@v3
45
42
with :
46
- github_token : ${{ secrets.GITHUB_TOKEN }}
47
- publish_dir : docs/_site
48
- force_orphan : true
43
+ path : ' docs/_site'
44
+
45
+ - name : Deploy to GitHub Pages
46
+ if : github.event_name == 'push'
47
+ id : deployment
48
+ uses : actions/deploy-pages@v4
49
+
50
+ # - name: Publish
51
+ # if: github.event_name == 'push'
52
+ # uses: peaceiris/actions-gh-pages@v3
53
+ # with:
54
+ # github_token: ${{ secrets.GITHUB_TOKEN }}
55
+ # publish_dir: docs/_site
56
+ # force_orphan: true
You can’t perform that action at this time.
0 commit comments