Skip to content

Commit 784b6e4

Browse files
authored
Merge pull request #28 from data-solution-automation-engine/dev/sj-wf-update
GitHub wf update
2 parents 2ae3d0c + 76ffe02 commit 784b6e4

File tree

1 file changed

+22
-14
lines changed

1 file changed

+22
-14
lines changed

.github/workflows/docs.yml

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,35 @@ jobs:
2222
runs-on: windows-latest
2323

2424
steps:
25-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v4
2626

27-
- name: Setup .NET 6.0
28-
uses: actions/setup-dotnet@v1
27+
- name: Setup .NET 8
28+
uses: actions/setup-dotnet@v4
2929
with:
30-
dotnet-version: 6.0.x
30+
dotnet-version: 8.0.x
3131

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
3634

3735
- name: DocFX Build
3836
working-directory: docs
3937
run: docfx .\docfx.json
4038
continue-on-error: false
4139

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
4542
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

0 commit comments

Comments
 (0)