Skip to content

Commit 9cd7271

Browse files
author
Jani Giannoudis
committed
fix: DocFX reads DLL instead of csproj to avoid C#14/version issues
1 parent ab5d8ed commit 9cd7271

2 files changed

Lines changed: 9 additions & 27 deletions

File tree

.github/workflows/pages.yml

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,13 @@ jobs:
2121
name: github-pages
2222
url: ${{ steps.deployment.outputs.page_url }}
2323
steps:
24-
- name: Checkout Client.Scripting
24+
- name: Checkout
2525
uses: actions/checkout@v4
26-
with:
27-
path: PayrollEngine.Client.Scripting
28-
29-
- name: Checkout Core
30-
uses: actions/checkout@v4
31-
with:
32-
repository: Payroll-Engine/PayrollEngine.Core
33-
token: ${{ secrets.PAT_DISPATCH }}
34-
path: PayrollEngine.Core
35-
36-
- name: Checkout Client.Core
37-
uses: actions/checkout@v4
38-
with:
39-
repository: Payroll-Engine/PayrollEngine.Client.Core
40-
token: ${{ secrets.PAT_DISPATCH }}
41-
path: PayrollEngine.Client.Core
4226

4327
- name: Setup .NET
4428
uses: actions/setup-dotnet@v4
4529
with:
46-
dotnet-version: '10.0.x'
30+
dotnet-version: '9.0.x'
4731

4832
- name: Configure GitHub Packages source
4933
run: |
@@ -53,19 +37,19 @@ jobs:
5337
--password ${{ secrets.PAT_DISPATCH }} \
5438
--store-password-in-clear-text
5539
40+
- name: Build
41+
run: dotnet build Client.Scripting/PayrollEngine.Client.Scripting.csproj -c Release
42+
5643
- name: Install DocFX
5744
run: dotnet tool install -g docfx
5845

59-
- name: Restore NuGet packages
60-
run: dotnet restore PayrollEngine.Client.Scripting/Client.Scripting/
61-
6246
- name: Build DocFX
63-
run: cd PayrollEngine.Client.Scripting/docfx && docfx docfx.json
47+
run: cd docfx && docfx docfx.json
6448

6549
- name: Upload Pages artifact
6650
uses: actions/upload-pages-artifact@v3
6751
with:
68-
path: PayrollEngine.Client.Scripting/docfx/_site
52+
path: docfx/_site
6953

7054
- name: Deploy to GitHub Pages
7155
id: deployment

docfx/docfx.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,16 @@
33
{
44
"src": [
55
{
6-
"files": [ "**.csproj" ],
7-
"src": "../Client.Scripting/"
6+
"files": [ "**/bin/Release/net9.0/PayrollEngine.Client.Scripting.dll" ],
7+
"src": "../../"
88
}
99
],
1010
"dest": "api",
1111
"includePrivateMembers": false,
1212
"disableGitFeatures": false,
1313
"disableDefaultFilter": false,
14-
"noRestore": false,
1514
"namespaceLayout": "flattened",
1615
"memberLayout": "samePage",
17-
"allowCompilationErrors": false,
1816
"filter": "filterConfig.yml"
1917
}
2018
],

0 commit comments

Comments
 (0)