Skip to content

Commit 012ffc1

Browse files
Merge pull request #216 from dynamsoft-docs/preview
update to internal commit ae34e90a
2 parents 6bb6d28 + 606a3e5 commit 012ffc1

File tree

3 files changed

+268
-34
lines changed

3 files changed

+268
-34
lines changed

.github/workflows/called-workflow-build-sync-production.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
password: ${{ secrets.FTP_DYNAMSOFT_LOCAL_PASSWORD }}
4242
port: 21
4343
local-dir: ${{ runner.temp }}/DocHome/_site/
44-
server-dir: /www.dynamsoft.com/${{ inputs.doc-url }}/
44+
server-dir: /www.dynamsoft.com/${{ inputs.doc-url }}/
4545

4646
- name: Trigger Webhook
4747
run: |

.github/workflows/called-workflow-build-sync-testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,5 @@ jobs:
7070
password: ${{ secrets.FTP_TEST_SITE_PASSWORD }}
7171
port: ${{ secrets.FTP_TEST_SITE_PORT }}
7272
local-dir: ${{ runner.temp }}\DocHome\_site/
73-
server-dir: /www.dynamsoft.com/${{ inputs.doc-url }}/
73+
server-dir: /www.dynamsoft.com/${{ inputs.doc-url }}/
7474

.github/workflows/main.yml

Lines changed: 266 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
push:
99
branches:
1010
- main
11-
#- preview
11+
- preview
1212

1313
# Allows you to run this workflow manually from the Actions tab
1414
workflow_dispatch:
@@ -277,6 +277,14 @@ jobs:
277277
doc-url: mrz-scanner/docs/web
278278
secrets: inherit
279279

280+
Update-BBS-On-Main-Change:
281+
if: ${{ github.ref == 'refs/heads/main' }}
282+
uses: ./.github/workflows/called-workflow-build-sync-production.yml
283+
with:
284+
doc-repo: batch-barcode-scanner-docs
285+
doc-url: batch-barcode-scanner/docs
286+
secrets: inherit
287+
280288
Update-MDS-On-Main-Change:
281289
if: ${{ github.ref == 'refs/heads/main' }}
282290
uses: ./.github/workflows/called-workflow-build-sync-production.yml
@@ -285,34 +293,260 @@ jobs:
285293
doc-url: mobile-document-scanner/docs/web/
286294
secrets: inherit
287295

288-
# build:
289-
# # The type of runner that the job will run on
290-
# runs-on: self-hosted
291-
#
292-
# # Steps represent a sequence of tasks that will be executed as part of the job
293-
# steps:
294-
# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
295-
# #- uses: actions/checkout@v2
296-
#
297-
# # Runs a set of commands using the runners shell
298-
#
299-
# - name: Build DNT Doc
300-
# run: |
301-
# cd /home/ubuntu
302-
# [ ! -d DNTDoc ] && mkdir -p DNTDoc
303-
# [ ! -d dotnet-twain-docs ] && git clone --depth 1 https://github.com/dynamsoft-docs/dotnet-twain-docs.git
304-
# cd dotnet-twain-docs && git pull && cd .. && cp -rfp ./dotnet-twain-docs/* ./DNTDoc/
305-
# cp -rfp ./Docs-Template-Repo/* ./DNTDoc/
306-
# cd DNTDoc && bundle exec jekyll build
307-
# python3 /home/ubuntu/ftp.py /home/ubuntu/DNTDoc/_site/ ./www.dynamsoft.com/dotnet-twain/docs/ prod
308-
#
309-
#
310-
# - name: Build Company Doc
311-
# run: |
312-
# cd /home/ubuntu
313-
# [ ! -d CompanyDoc ] && mkdir -p CompanyDoc
314-
# [ ! -d company-docs ] && git clone --depth 1 https://github.com/dynamsoft-docs/company-docs.git
315-
# cd company-docs && git pull && cd .. && cp -rfp ./company-docs/* ./CompanyDoc/
316-
# cp -rfp ./Docs-Template-Repo/* ./CompanyDoc/
317-
# cd CompanyDoc && bundle exec jekyll build
318-
# python3 /home/ubuntu/ftp.py /home/ubuntu/CompanyDoc/_site/ ./www.dynamsoft.com/company/docs/ prod
296+
297+
Update-DBR-Core-On-Preview-Change:
298+
if: ${{ github.ref == 'refs/heads/preview' }}
299+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
300+
with:
301+
doc-repo: barcode-reader-docs
302+
doc-url: barcode-reader/docs/core
303+
secrets: inherit
304+
305+
Update-DBR-Server-On-Preview-Change:
306+
if: ${{ github.ref == 'refs/heads/preview' }}
307+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
308+
with:
309+
doc-repo: barcode-reader-docs-server
310+
doc-url: barcode-reader/docs/server
311+
secrets: inherit
312+
313+
Update-DBR-Mobile-On-Preview-Change:
314+
if: ${{ github.ref == 'refs/heads/preview' }}
315+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
316+
with:
317+
doc-repo: barcode-reader-docs-mobile
318+
doc-url: barcode-reader/docs/mobile
319+
secrets: inherit
320+
321+
Update-DBR-Js-On-Preview-Change:
322+
if: ${{ github.ref == 'refs/heads/preview' }}
323+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
324+
with:
325+
doc-repo: barcode-reader-docs-js
326+
doc-url: barcode-reader/docs/web
327+
secrets: inherit
328+
329+
Update-DCV-Core-On-Preview-Change:
330+
if: ${{ github.ref == 'refs/heads/preview' }}
331+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
332+
with:
333+
doc-repo: capture-vision-docs
334+
doc-url: capture-vision/docs/core
335+
secrets: inherit
336+
337+
Update-DCV-Server-On-Preview-Change:
338+
if: ${{ github.ref == 'refs/heads/preview' }}
339+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
340+
with:
341+
doc-repo: capture-vision-docs-server
342+
doc-url: capture-vision/docs/server
343+
secrets: inherit
344+
345+
Update-DCV-Mobile-On-Preview-Change:
346+
if: ${{ github.ref == 'refs/heads/preview' }}
347+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
348+
with:
349+
doc-repo: capture-vision-docs-mobile
350+
doc-url: capture-vision/docs/mobile
351+
secrets: inherit
352+
353+
Update-DCV-Js-On-Preview-Change:
354+
if: ${{ github.ref == 'refs/heads/preview' }}
355+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
356+
with:
357+
doc-repo: capture-vision-docs-js
358+
doc-url: capture-vision/docs/web
359+
secrets: inherit
360+
361+
Update-DLR-Core-On-Preview-Change:
362+
if: ${{ github.ref == 'refs/heads/preview' }}
363+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
364+
with:
365+
doc-repo: label-recognition-docs
366+
doc-url: label-recognition/docs/core
367+
secrets: inherit
368+
369+
Update-DLR-Server-On-Preview-Change:
370+
if: ${{ github.ref == 'refs/heads/preview' }}
371+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
372+
with:
373+
doc-repo: label-recognition-docs-server
374+
doc-url: label-recognition/docs/server
375+
secrets: inherit
376+
377+
Update-DLR-Mobile-On-Preview-Change:
378+
if: ${{ github.ref == 'refs/heads/preview' }}
379+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
380+
with:
381+
doc-repo: label-recognition-docs-mobile
382+
doc-url: label-recognition/docs/mobile
383+
secrets: inherit
384+
385+
Update-DLR-Js-On-Preview-Change:
386+
if: ${{ github.ref == 'refs/heads/preview' }}
387+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
388+
with:
389+
doc-repo: label-recognition-docs-js
390+
doc-url: label-recognition/docs/web
391+
secrets: inherit
392+
393+
Update-DDN-Core-On-Preview-Change:
394+
if: ${{ github.ref == 'refs/heads/preview' }}
395+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
396+
with:
397+
doc-repo: document-normalizer-docs
398+
doc-url: document-normalizer/docs/core
399+
secrets: inherit
400+
401+
Update-DDN-Server-On-Preview-Change:
402+
if: ${{ github.ref == 'refs/heads/preview' }}
403+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
404+
with:
405+
doc-repo: document-normalizer-docs-server
406+
doc-url: document-normalizer/docs/server
407+
secrets: inherit
408+
409+
Update-DDN-Mobile-On-Preview-Change:
410+
if: ${{ github.ref == 'refs/heads/preview' }}
411+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
412+
with:
413+
doc-repo: document-normalizer-docs-mobile
414+
doc-url: document-normalizer/docs/mobile
415+
secrets: inherit
416+
417+
Update-DDN-Js-On-Preview-Change:
418+
if: ${{ github.ref == 'refs/heads/preview' }}
419+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
420+
with:
421+
doc-repo: document-normalizer-docs-js
422+
doc-url: document-normalizer/docs/web
423+
secrets: inherit
424+
425+
Update-DCP-Core-On-Preview-Change:
426+
if: ${{ github.ref == 'refs/heads/preview' }}
427+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
428+
with:
429+
doc-repo: code-parser-docs
430+
doc-url: code-parser/docs/core
431+
secrets: inherit
432+
433+
Update-DCP-Server-On-Preview-Change:
434+
if: ${{ github.ref == 'refs/heads/preview' }}
435+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
436+
with:
437+
doc-repo: code-parser-docs-server
438+
doc-url: code-parser/docs/server
439+
secrets: inherit
440+
441+
Update-DCP-Mobile-On-Preview-Change:
442+
if: ${{ github.ref == 'refs/heads/preview' }}
443+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
444+
with:
445+
doc-repo: code-parser-docs-mobile
446+
doc-url: code-parser/docs/mobile
447+
secrets: inherit
448+
449+
Update-DCP-Js-On-Preview-Change:
450+
if: ${{ github.ref == 'refs/heads/preview' }}
451+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
452+
with:
453+
doc-repo: code-parser-docs-js
454+
doc-url: code-parser/docs/web
455+
secrets: inherit
456+
457+
Update-DCE-Core-On-Preview-Change:
458+
if: ${{ github.ref == 'refs/heads/preview' }}
459+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
460+
with:
461+
doc-repo: camera-enhancer-docs
462+
doc-url: camera-enhancer/docs/core
463+
secrets: inherit
464+
465+
Update-DCE-Mobile-On-Preview-Change:
466+
if: ${{ github.ref == 'refs/heads/preview' }}
467+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
468+
with:
469+
doc-repo: camera-enhancer-docs-mobile
470+
doc-url: camera-enhancer/docs/mobile
471+
secrets: inherit
472+
473+
Update-DCE-JS-On-Preview-Change:
474+
if: ${{ github.ref == 'refs/heads/preview' }}
475+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
476+
with:
477+
doc-repo: camera-enhancer-docs-js
478+
doc-url: camera-enhancer/docs/web
479+
secrets: inherit
480+
481+
Update-DWT-On-Preview-Change:
482+
if: ${{ github.ref == 'refs/heads/preview' }}
483+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
484+
with:
485+
doc-repo: web-twain-docs
486+
doc-url: web-twain/docs
487+
secrets: inherit
488+
489+
Update-DDV-On-Preview-Change:
490+
if: ${{ github.ref == 'refs/heads/preview' }}
491+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
492+
with:
493+
doc-repo: document-viewer-docs
494+
doc-url: document-viewer/docs
495+
secrets: inherit
496+
497+
Update-MWC-On-Preview-Change:
498+
if: ${{ github.ref == 'refs/heads/preview' }}
499+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
500+
with:
501+
doc-repo: mobile-web-capture-docs
502+
doc-url: mobile-web-capture/docs
503+
secrets: inherit
504+
505+
Update-DLS-On-Preview-Change:
506+
if: ${{ github.ref == 'refs/heads/preview' }}
507+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
508+
with:
509+
doc-repo: license-server-docs
510+
doc-url: license-server/docs
511+
secrets: inherit
512+
513+
Update-MRZ-Core-On-Preview-Change:
514+
if: ${{ github.ref == 'refs/heads/preview' }}
515+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
516+
with:
517+
doc-repo: mrz-scanner-docs
518+
doc-url: mrz-scanner/docs/core
519+
secrets: inherit
520+
521+
Update-MRZ-Mobile-On-Preview-Change:
522+
if: ${{ github.ref == 'refs/heads/preview' }}
523+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
524+
with:
525+
doc-repo: mrz-scanner-docs-mobile
526+
doc-url: mrz-scanner/docs/mobile
527+
secrets: inherit
528+
529+
Update-MRZ-Js-On-Preview-Change:
530+
if: ${{ github.ref == 'refs/heads/preview' }}
531+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
532+
with:
533+
doc-repo: mrz-scanner-docs-js
534+
doc-url: mrz-scanner/docs/web
535+
secrets: inherit
536+
537+
Update-BBS-On-Preview-Change:
538+
if: ${{ github.ref == 'refs/heads/preview' }}
539+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
540+
with:
541+
doc-repo: batch-barcode-scanner-docs
542+
doc-url: batch-barcode-scanner/docs
543+
secrets: inherit
544+
545+
Update-MDS-On-Preview-Change:
546+
if: ${{ github.ref == 'refs/heads/preview' }}
547+
uses: ./.github/workflows/called-workflow-build-sync-testing.yml
548+
with:
549+
doc-repo: mobile-document-scanner-docs-js
550+
doc-url: mobile-document-scanner/docs/web/
551+
secrets: inherit
552+

0 commit comments

Comments
 (0)