-
Notifications
You must be signed in to change notification settings - Fork 119
82 lines (58 loc) · 3.29 KB
/
test-deploy-website.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Test deployment
on:
pull_request:
jobs:
test-deploy:
name: Test deployment
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
- run: dotnet tool install --global gsferreira.XmlDocMarkdown.Docusaurus --version 0.0.1-beta2 # using this version while the Pull Request isn't accepted here: https://github.com/ejball/XmlDocMarkdown/pull/126
shell: bash
- name: .NET Publish
run: dotnet publish KafkaFlow.sln -c Release -o ./drop
- run: dotnet tool list --global
shell: bash
- run: xmldocmd-docusaurus ./drop/KafkaFlow.dll website/docs/reference/KafkaFlow --type-folders
shell: bash
- run: xmldocmd-docusaurus ./drop/KafkaFlow.Admin.dll website/docs/reference/KafkaFlow.Admin --type-folders
shell: bash
- run: xmldocmd-docusaurus ./drop/KafkaFlow.Extensions.Hosting.dll website/docs/reference/KafkaFlow.Extensions.Hosting --type-folders
shell: bash
- run: xmldocmd-docusaurus ./drop/KafkaFlow.LogHandler.Console.dll website/docs/reference/KafkaFlow.LogHandler.Console --type-folders
shell: bash
- run: xmldocmd-docusaurus ./drop/KafkaFlow.LogHandler.Microsoft.dll website/docs/reference/KafkaFlow.LogHandler.Microsoft --type-folders
shell: bash
- run: xmldocmd-docusaurus ./drop/KafkaFlow.Microsoft.DependencyInjection.dll website/docs/reference/KafkaFlow.Microsoft.DependencyInjection --type-folders
shell: bash
- run: xmldocmd-docusaurus ./drop/KafkaFlow.SchemaRegistry.dll website/docs/reference/KafkaFlow.SchemaRegistry --type-folders
shell: bash
- run: xmldocmd-docusaurus ./drop/KafkaFlow.Serializer.JsonCore.dll website/docs/reference/KafkaFlow.Serializer.JsonCore --type-folders
shell: bash
- run: xmldocmd-docusaurus ./drop/KafkaFlow.Serializer.NewtonsoftJson.dll website/docs/reference/KafkaFlow.Serializer.NewtonsoftJson --type-folders
shell: bash
- run: xmldocmd-docusaurus ./drop/KafkaFlow.Serializer.ProtobufNet.dll website/docs/reference/KafkaFlow.Serializer.ProtobufNet --type-folders
shell: bash
- run: xmldocmd-docusaurus ./drop/KafkaFlow.Serializer.SchemaRegistry.ConfluentAvro.dll website/docs/reference/KafkaFlow.Serializer.SchemaRegistry.ConfluentAvro --type-folders
shell: bash
- run: xmldocmd-docusaurus ./drop/KafkaFlow.Serializer.SchemaRegistry.ConfluentJson.dll website/docs/reference/KafkaFlow.Serializer.SchemaRegistry.ConfluentJson --type-folders
shell: bash
- run: xmldocmd-docusaurus ./drop/KafkaFlow.Serializer.SchemaRegistry.ConfluentProtobuf.dll website/docs/reference/KafkaFlow.Serializer.SchemaRegistry.ConfluentProtobuf --type-folders
shell: bash
- run: xmldocmd-docusaurus ./drop/KafkaFlow.Unity.dll website/docs/reference/KafkaFlow.Unity --type-folders
shell: bash
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
cache-dependency-path: website/yarn.lock
- name: Install dependencies
working-directory: ./website
run: yarn install --frozen-lockfile
- name: Test build website
working-directory: ./website
run: yarn build