-
Notifications
You must be signed in to change notification settings - Fork 2
287 lines (240 loc) · 9.12 KB
/
main.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push events
push:
branches:
- main
#- preview
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Update-DBR-Core-On-Main-Change:
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/workflows/called-workflow-build-sync-production.yml
with:
doc-repo: barcode-reader-docs
doc-url: barcode-reader/docs/core
secrets: inherit
Update-DBR-Server-On-Main-Change:
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/workflows/called-workflow-build-sync-production.yml
with:
doc-repo: barcode-reader-docs-server
doc-url: barcode-reader/docs/server
secrets: inherit
Update-DBR-Mobile-On-Main-Change:
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/workflows/called-workflow-build-sync-production.yml
with:
doc-repo: barcode-reader-docs-mobile
doc-url: barcode-reader/docs/mobile
secrets: inherit
Update-DBR-Js-On-Main-Change:
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/workflows/called-workflow-build-sync-production.yml
with:
doc-repo: barcode-reader-docs-js
doc-url: barcode-reader/docs/web
secrets: inherit
Update-DCV-Core-On-Main-Change:
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/workflows/called-workflow-build-sync-production.yml
with:
doc-repo: capture-vision-docs
doc-url: capture-vision/docs/core
secrets: inherit
Update-DCV-Server-On-Main-Change:
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/workflows/called-workflow-build-sync-production.yml
with:
doc-repo: capture-vision-docs-server
doc-url: capture-vision/docs/server
secrets: inherit
Update-DCV-Mobile-On-Main-Change:
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/workflows/called-workflow-build-sync-production.yml
with:
doc-repo: capture-vision-docs-mobile
doc-url: capture-vision/docs/mobile
secrets: inherit
Update-DCV-Js-On-Main-Change:
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/workflows/called-workflow-build-sync-production.yml
with:
doc-repo: capture-vision-docs-js
doc-url: capture-vision/docs/web
secrets: inherit
Update-DLR-Core-On-Main-Change:
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/workflows/called-workflow-build-sync-production.yml
with:
doc-repo: label-recognition-docs
doc-url: label-recognition/docs/core
secrets: inherit
Update-DLR-Server-On-Main-Change:
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/workflows/called-workflow-build-sync-production.yml
with:
doc-repo: label-recognition-docs-server
doc-url: label-recognition/docs/server
secrets: inherit
Update-DLR-Mobile-On-Main-Change:
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/workflows/called-workflow-build-sync-production.yml
with:
doc-repo: label-recognition-docs-mobile
doc-url: label-recognition/docs/mobile
secrets: inherit
Update-DLR-Js-On-Main-Change:
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/workflows/called-workflow-build-sync-production.yml
with:
doc-repo: label-recognition-docs-js
doc-url: label-recognition/docs/web
secrets: inherit
Update-DDN-Core-On-Main-Change:
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/workflows/called-workflow-build-sync-production.yml
with:
doc-repo: document-normalizer-docs
doc-url: document-normalizer/docs/core
secrets: inherit
Update-DDN-Server-On-Main-Change:
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/workflows/called-workflow-build-sync-production.yml
with:
doc-repo: document-normalizer-docs-server
doc-url: document-normalizer/docs/server
secrets: inherit
Update-DDN-Mobile-On-Main-Change:
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/workflows/called-workflow-build-sync-production.yml
with:
doc-repo: document-normalizer-docs-mobile
doc-url: document-normalizer/docs/mobile
secrets: inherit
Update-DDN-Js-On-Main-Change:
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/workflows/called-workflow-build-sync-production.yml
with:
doc-repo: document-normalizer-docs-js
doc-url: document-normalizer/docs/web
secrets: inherit
Update-DCP-Core-On-Main-Change:
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/workflows/called-workflow-build-sync-production.yml
with:
doc-repo: code-parser-docs
doc-url: code-parser/docs/core
secrets: inherit
Update-DCP-Server-On-Main-Change:
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/workflows/called-workflow-build-sync-production.yml
with:
doc-repo: code-parser-docs-server
doc-url: code-parser/docs/server
secrets: inherit
Update-DCP-Mobile-On-Main-Change:
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/workflows/called-workflow-build-sync-production.yml
with:
doc-repo: code-parser-docs-mobile
doc-url: code-parser/docs/mobile
secrets: inherit
Update-DCP-Js-On-Main-Change:
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/workflows/called-workflow-build-sync-production.yml
with:
doc-repo: code-parser-docs-js
doc-url: code-parser/docs/web
secrets: inherit
Update-DCE-Core-On-Main-Change:
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/workflows/called-workflow-build-sync-production.yml
with:
doc-repo: camera-enhancer-docs
doc-url: camera-enhancer/docs/core
secrets: inherit
#Update-DCE-Server-On-Main-Change:
# if: ${{ github.ref == 'refs/heads/main' }}
# uses: ./.github/workflows/called-workflow-build-sync-production.yml
# with:
# doc-repo: camera-enhancer-docs-server
# doc-url: camera-enhancer/docs/server
# secrets: inherit
Update-DCE-Mobile-On-Main-Change:
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/workflows/called-workflow-build-sync-production.yml
with:
doc-repo: camera-enhancer-docs-mobile
doc-url: camera-enhancer/docs/mobile
secrets: inherit
Update-DCE-JS-On-Main-Change:
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/workflows/called-workflow-build-sync-production.yml
with:
doc-repo: camera-enhancer-docs-js
doc-url: camera-enhancer/docs/web
secrets: inherit
Update-DWT-On-Main-Change:
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/workflows/called-workflow-build-sync-production.yml
with:
doc-repo: web-twain-docs
doc-url: web-twain/docs
secrets: inherit
Update-DDV-On-Main-Change:
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/workflows/called-workflow-build-sync-production.yml
with:
doc-repo: document-viewer-docs
doc-url: document-viewer/docs
secrets: inherit
Update-MWC-On-Main-Change:
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/workflows/called-workflow-build-sync-production.yml
with:
doc-repo: mobile-web-capture-docs
doc-url: mobile-web-capture/docs
secrets: inherit
Update-DLS-On-Main-Change:
if: ${{ github.ref == 'refs/heads/main' }}
uses: ./.github/workflows/called-workflow-build-sync-production.yml
with:
doc-repo: license-server-docs
doc-url: license-server/docs
secrets: inherit
# build:
# # The type of runner that the job will run on
# runs-on: self-hosted
#
# # Steps represent a sequence of tasks that will be executed as part of the job
# steps:
# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# #- uses: actions/checkout@v2
#
# # Runs a set of commands using the runners shell
#
# - name: Build DNT Doc
# run: |
# cd /home/ubuntu
# [ ! -d DNTDoc ] && mkdir -p DNTDoc
# [ ! -d dotnet-twain-docs ] && git clone --depth 1 https://github.com/dynamsoft-docs/dotnet-twain-docs.git
# cd dotnet-twain-docs && git pull && cd .. && cp -rfp ./dotnet-twain-docs/* ./DNTDoc/
# cp -rfp ./Docs-Template-Repo/* ./DNTDoc/
# cd DNTDoc && bundle exec jekyll build
# python3 /home/ubuntu/ftp.py /home/ubuntu/DNTDoc/_site/ ./www.dynamsoft.com/dotnet-twain/docs/ prod
#
#
# - name: Build Company Doc
# run: |
# cd /home/ubuntu
# [ ! -d CompanyDoc ] && mkdir -p CompanyDoc
# [ ! -d company-docs ] && git clone --depth 1 https://github.com/dynamsoft-docs/company-docs.git
# cd company-docs && git pull && cd .. && cp -rfp ./company-docs/* ./CompanyDoc/
# cp -rfp ./Docs-Template-Repo/* ./CompanyDoc/
# cd CompanyDoc && bundle exec jekyll build
# python3 /home/ubuntu/ftp.py /home/ubuntu/CompanyDoc/_site/ ./www.dynamsoft.com/company/docs/ prod