@@ -3,7 +3,7 @@ name: Deploy GitHub Pages
3
3
on :
4
4
push :
5
5
branches :
6
- - master
6
+ - main
7
7
8
8
workflow_dispatch :
9
9
@@ -21,55 +21,18 @@ jobs:
21
21
runs-on : ubuntu-latest
22
22
steps :
23
23
- uses : actions/checkout@v3
24
- with :
25
- fetch-depth : 1
26
-
27
- - run : mkdir public
28
-
29
- - name : Build Index
30
- uses : jaywcjlove/markdown-to-html-cli@main
31
- with :
32
- source : res/docs_index.md
33
- output : public/index.html
34
- github-corners : https://github.com/buehler/dotnet-operator-sdk
35
-
36
- - name : Build Contribution
37
- uses : jaywcjlove/markdown-to-html-cli@main
38
- with :
39
- source : CONTRIBUTING.md
40
- output : public/contribution.html
41
- github-corners : https://github.com/buehler/dotnet-operator-sdk
42
24
43
- - name : Build KubeOps
44
- uses : jaywcjlove/markdown-to-html-cli@main
25
+ - name : Setup .NET
26
+ uses : actions/setup-dotnet@v3
45
27
with :
46
- source : src/KubeOps/README.md
47
- output : public/kubeops.html
48
- github-corners : https://github.com/buehler/dotnet-operator-sdk/tree/master/src/KubeOps
28
+ dotnet-version : 7.x
49
29
50
- - name : Build KubeOps.KubernetesClient
51
- uses : jaywcjlove/markdown-to-html-cli@main
52
- with :
53
- source : src/KubeOps.KubernetesClient/README.md
54
- output : public/kubeops-kubernetesclient.html
55
- github-corners : https://github.com/buehler/dotnet-operator-sdk/tree/master/src/KubeOps.KubernetesClient
30
+ - run : dotnet tool restore
56
31
57
- - name : Build KubeOps.Templates
58
- uses : jaywcjlove/markdown-to-html-cli@main
59
- with :
60
- source : src/KubeOps.Templates/README.md
61
- output : public/kubeops-templates.html
62
- github-corners : https://github.com/buehler/dotnet-operator-sdk/tree/master/src/KubeOps.Templates
63
-
64
- - name : Build KubeOps.Testing
65
- uses : jaywcjlove/markdown-to-html-cli@main
66
- with :
67
- source : src/KubeOps.Testing/README.md
68
- output : public/kubeops-testing.html
69
- github-corners : https://github.com/buehler/dotnet-operator-sdk/tree/master/src/KubeOps.Testing
32
+ - run : dotnet docfx
70
33
71
34
- uses : actions/upload-pages-artifact@v1
72
35
with :
73
- path : public
36
+ path : _site
74
37
75
38
- uses : actions/deploy-pages@v1
0 commit comments