Skip to content

Commit 2ad1f9e

Browse files
author
Jani Giannoudis
committed
fix: full DocFX build with multi-repo checkout
1 parent 37590b3 commit 2ad1f9e

1 file changed

Lines changed: 33 additions & 3 deletions

File tree

.github/workflows/pages.yml

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,48 @@ jobs:
2121
name: github-pages
2222
url: ${{ steps.deployment.outputs.page_url }}
2323
steps:
24-
- uses: actions/checkout@v4
24+
- name: Checkout Client.Scripting
25+
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
42+
43+
- name: Setup .NET
44+
uses: actions/setup-dotnet@v4
45+
with:
46+
dotnet-version: '10.0.x'
47+
48+
- name: Configure GitHub Packages source
49+
run: |
50+
dotnet nuget add source \
51+
"https://nuget.pkg.github.com/Payroll-Engine/index.json" \
52+
--name github --username github-actions \
53+
--password ${{ secrets.PAT_DISPATCH }} \
54+
--store-password-in-clear-text
2555
2656
- name: Install DocFX
2757
run: dotnet tool install -g docfx
2858

2959
- name: Build DocFX
30-
run: cd docfx && docfx docfx.pages.json
60+
run: cd PayrollEngine.Client.Scripting/docfx && docfx docfx.json --outputFolder _site
3161

3262
- name: Upload Pages artifact
3363
uses: actions/upload-pages-artifact@v3
3464
with:
35-
path: docfx/_site
65+
path: PayrollEngine.Client.Scripting/docfx/_site
3666

3767
- name: Deploy to GitHub Pages
3868
id: deployment

0 commit comments

Comments
 (0)