Skip to content

Commit c5cb21f

Browse files
author
Christoph Bühler
committed
chore: use windows machine to build docs
1 parent 6a117ee commit c5cb21f

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

.github/workflows/github-pages.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,22 @@ on:
55
branches: [master]
66

77
jobs:
8-
build-and-deploy:
9-
runs-on: ubuntu-latest
8+
gh-pages:
9+
runs-on: windows-latest
1010
steps:
1111
- uses: actions/checkout@v2
1212
- name: Setup .NET Core
1313
uses: actions/setup-dotnet@v1
1414
with:
1515
dotnet-version: 3.1.401
16-
- name: Build
17-
run: ./build.sh --target compile --no-logo
18-
- uses: nikeee/[email protected]
19-
name: Build Documentation
16+
- name: Setup MS Build
17+
uses: microsoft/[email protected]
18+
- name: Install DocFX
19+
uses: crazy-max/ghaction-chocolatey@v1
2020
with:
21-
args: docs/docfx.json
21+
args: install docfx -y
22+
- name: Build Documentation
23+
run: docfx docs/docfx.json
2224
- name: Deploy
2325
uses: JamesIves/[email protected]
2426
with:

tests/KubeOps.TestOperator/Entities/V2TestEntity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class V2TestEntitySpec
1010
/// </summary>
1111
public string Spec { get; set; } = string.Empty;
1212

13-
public string? Username { get; set; }
13+
public string Username { get; set; } = string.Empty;
1414

1515
public IntstrIntOrString StringOrInteger { get; set; } = 42;
1616
}

tests/KubeOps.TestOperator/KubeOps.TestOperator.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<OutputType>Exe</OutputType>
55
<TargetFramework>netcoreapp3.1</TargetFramework>
66
<GenerateDocumentationFile>true</GenerateDocumentationFile>
7+
<NoWarn>CS1591</NoWarn>
78
</PropertyGroup>
89

910
<ItemGroup>

0 commit comments

Comments
 (0)