Skip to content

Commit 8d4131a

Browse files
committed
fix: update GitHub Actions workflow condition and add DocFX build targets to project files, add memberPages
1 parent 8db2505 commit 8d4131a

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ jobs:
156156
name: Publish to internal NuGet
157157
runs-on: windows-2019
158158
needs: build-artifacts
159-
if: ${{ github.event.inputs.push-to-dev }}
159+
if: ${{ github.event.inputs.push-to-dev == 'true' }}
160160
permissions:
161161
contents: read
162162
packages: write

Yubico.YubiKey/src/Yubico.YubiKey.csproj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,4 +155,16 @@ limitations under the License. -->
155155

156156
</ItemGroup>
157157

158+
<!-- DocFX build target runs after Release-build -->
159+
<Target Name="CheckDocFX">
160+
<Exec Command="docfx --version" EchoOff="true" ContinueOnError="true" StandardErrorImportance="High" StandardOutputImportance="High">
161+
<Output TaskParameter="ExitCode" PropertyName="DocFXExists" />
162+
</Exec>
163+
<Error Condition="'$(DocFXExists)' != '0'" Text="DocFX is not installed. Please install it using: dotnet tool install --global docfx" />
164+
</Target>
165+
166+
<Target Name="DocFXBuild" AfterTargets="Build" DependsOnTargets="CheckDocFX" Condition="'$(Configuration)' == 'Release'">
167+
<Exec Command="docfx build $(MSBuildProjectDirectory)/docfx.json --log docfxlogz.txt" IgnoreExitCode="true"/>
168+
</Target>
169+
158170
</Project>

Yubico.YubiKey/src/docfx.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"dest": "../docs/yubikey-api/",
88
"disableGitFeatures": true,
99
"disableDefaultFilter": false,
10+
"memberLayout": "separatePages",
1011
"filter": "../docs/filterConfig.yml"
1112
},
1213
{
@@ -16,6 +17,7 @@
1617
"dest": "../docs/core-api/",
1718
"disableGitFeatures": true,
1819
"disableDefaultFilter": false,
20+
"memberLayout": "separatePages",
1921
"filter": "../docs/filterConfig.yml"
2022
}
2123
],

0 commit comments

Comments
 (0)