From 3181a4c4f19284c8b4696927055337b734feecec Mon Sep 17 00:00:00 2001 From: Justin Date: Mon, 15 Sep 2025 14:34:34 +0800 Subject: [PATCH 1/3] apdate github workflow --- workflows/main.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 workflows/main.yml diff --git a/workflows/main.yml b/workflows/main.yml new file mode 100644 index 0000000..a873ed2 --- /dev/null +++ b/workflows/main.yml @@ -0,0 +1,42 @@ +# 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 but only for the main branch + 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: + # This workflow contains jobs called "Build-main" and "Build-Preview" + Build-Main: + if: ${{ github.ref == 'refs/heads/main' }} + uses: dynamsoft-docs/Docs-Template-Repo/.github/workflows/called-workflow-build-sync-production.yml@main + with: + doc-repo: capture-vision-docs-js + doc-url: capture-vision/docs/web + secrets: inherit + + Build-Preview: + if: ${{ github.ref == 'refs/heads/preview' }} + uses: dynamsoft-docs/Docs-Template-Repo/.github/workflows/called-workflow-build-sync-testing.yml@preview + with: + doc-repo: capture-vision-docs-js + doc-url: capture-vision/docs/web + secrets: inherit + + Build-v2: + if: ${{ github.ref == 'refs/heads/v2' }} + uses: dynamsoft-docs/Docs-Template-Repo/.github/workflows/called-workflow-build-sync-testing.yml@DCV-v2 + with: + doc-repo: capture-vision-docs-js + doc-url: capture-vision/docs/v2/web + doc-branch: v2 + secrets: inherit From bbdda2e461fa0ab71443e94d149e7cb637908cc9 Mon Sep 17 00:00:00 2001 From: Justin Date: Mon, 15 Sep 2025 14:45:36 +0800 Subject: [PATCH 2/3] update --- .github/workflows/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1e4ce71..13e7b7d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,3 +32,11 @@ jobs: doc-url: capture-vision/docs/web secrets: inherit + Build-v2: + if: ${{ github.ref == 'refs/heads/v2' }} + uses: dynamsoft-docs/Docs-Template-Repo/.github/workflows/called-workflow-build-sync-production.yml@DCV-v2 + with: + doc-repo: capture-vision-docs-js + doc-url: capture-vision/docs/v2/web + doc-branch: v2 + secrets: inherit \ No newline at end of file From c4fe66a43bf03e84aeb825d42a5fff9e4b3310df Mon Sep 17 00:00:00 2001 From: Justin Date: Mon, 15 Sep 2025 14:54:18 +0800 Subject: [PATCH 3/3] remove redundancy --- workflows/main.yml | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 workflows/main.yml diff --git a/workflows/main.yml b/workflows/main.yml deleted file mode 100644 index a873ed2..0000000 --- a/workflows/main.yml +++ /dev/null @@ -1,42 +0,0 @@ -# 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 but only for the main branch - 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: - # This workflow contains jobs called "Build-main" and "Build-Preview" - Build-Main: - if: ${{ github.ref == 'refs/heads/main' }} - uses: dynamsoft-docs/Docs-Template-Repo/.github/workflows/called-workflow-build-sync-production.yml@main - with: - doc-repo: capture-vision-docs-js - doc-url: capture-vision/docs/web - secrets: inherit - - Build-Preview: - if: ${{ github.ref == 'refs/heads/preview' }} - uses: dynamsoft-docs/Docs-Template-Repo/.github/workflows/called-workflow-build-sync-testing.yml@preview - with: - doc-repo: capture-vision-docs-js - doc-url: capture-vision/docs/web - secrets: inherit - - Build-v2: - if: ${{ github.ref == 'refs/heads/v2' }} - uses: dynamsoft-docs/Docs-Template-Repo/.github/workflows/called-workflow-build-sync-testing.yml@DCV-v2 - with: - doc-repo: capture-vision-docs-js - doc-url: capture-vision/docs/v2/web - doc-branch: v2 - secrets: inherit