Skip to content

Commit 233b661

Browse files
committed
Updated the documentation generation publish action to build the release assemblies before running docfx.
1 parent 5284bac commit 233b661

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

.github/workflows/docfx-publish.yml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,30 @@ permissions:
1515
concurrency:
1616
group: "pages"
1717
cancel-in-progress: false
18-
18+
1919
jobs:
2020
publish-docs:
2121
environment:
2222
name: github-pages
2323
url: ${{ steps.deployment.outputs.page_url }}
2424
runs-on: ubuntu-latest
2525
steps:
26-
- name: Checkout
27-
uses: actions/checkout@v4
28-
- name: Dotnet Setup
29-
uses: actions/setup-dotnet@v4
30-
with:
31-
dotnet-version: 9.x
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
- name: Dotnet Setup
29+
uses: actions/setup-dotnet@v4
30+
with:
31+
dotnet-version: 9.x
3232

33-
- run: dotnet tool update -g docfx
34-
- run: docfx Source/Docs/docfx.json
33+
- run: dotnet tool update -g docfx
34+
- run: dotnet build -c Release --no-incremental Source/KZDev.PerfUtils.sln
35+
- run: docfx Source/Docs/docfx.json
3536

36-
- name: Upload artifact
37-
uses: actions/upload-pages-artifact@v3
38-
with:
39-
# Upload entire site directory
40-
path: 'Source/Docs/_site'
41-
- name: Deploy to GitHub Pages
42-
id: deployment
43-
uses: actions/deploy-pages@v4
37+
- name: Upload artifact
38+
uses: actions/upload-pages-artifact@v3
39+
with:
40+
# Upload entire site directory
41+
path: "Source/Docs/_site"
42+
- name: Deploy to GitHub Pages
43+
id: deployment
44+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)