Skip to content

Commit 576e899

Browse files
author
Jani Giannoudis
committed
fix: dotnet publish to include all dependency DLLs for DocFX
1 parent 38c1fbc commit 576e899

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/pages.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Builds the scripting API reference with [DocFX](https://dotnet.github.io/docfx/)
1616
| Checkout | Checks out the repository |
1717
| Setup .NET | Installs .NET 10 SDK |
1818
| Configure GitHub Packages | Adds the Payroll-Engine NuGet feed using `PAT_DISPATCH` |
19-
| Build | `dotnet build Client.Scripting/PayrollEngine.Client.Scripting.csproj -c Release` |
19+
| Build | `dotnet publish Client.Scripting/PayrollEngine.Client.Scripting.csproj -c Release -o publish` |
2020
| Install DocFX | Installs the latest DocFX global tool |
2121
| Build DocFX | Runs `docfx docfx/docfx.json` — generates HTML into `docfx/_site/` |
2222
| Upload Pages artifact | Uploads `docfx/_site/` as the GitHub Pages artifact |
@@ -45,5 +45,5 @@ Builds the scripting API reference with [DocFX](https://dotnet.github.io/docfx/)
4545
DocFX is configured in `docfx/docfx.json`. The metadata source is the compiled assembly:
4646

4747
```
48-
Client.Scripting/bin/Release/net10.0/PayrollEngine.*.dll
48+
publish/PayrollEngine.*.dll
4949
```

.github/workflows/pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
--store-password-in-clear-text
3939
4040
- name: Build
41-
run: dotnet build Client.Scripting/PayrollEngine.Client.Scripting.csproj -c Release
41+
run: dotnet publish Client.Scripting/PayrollEngine.Client.Scripting.csproj -c Release -o publish
4242

4343
- name: Install DocFX
4444
run: dotnet tool install -g docfx

docfx/docfx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"src": [
55
{
6-
"files": [ "Client.Scripting/bin/Release/net10.0/PayrollEngine.*.dll" ],
6+
"files": [ "publish/PayrollEngine.*.dll" ],
77
"src": "../"
88
}
99
],

0 commit comments

Comments
 (0)