Skip to content

Commit 6193f18

Browse files
Merge pull request #17 from a362758199/v2
V2
2 parents 37ba8e0 + a3386af commit 6193f18

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/main.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CI
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push events but only for the main branch
8+
push:
9+
branches:
10+
- main
11+
#- preview
12+
13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
16+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
17+
jobs:
18+
# This workflow contains jobs called "Build-main" and "Build-Preview"
19+
Build-Main:
20+
if: ${{ github.ref == 'refs/heads/main' }}
21+
uses: dynamsoft-docs/Docs-Template-Repo/.github/workflows/called-workflow-build-sync-production.yml@main
22+
with:
23+
doc-repo: code-parser-docs-js
24+
doc-url: code-parser/docs/web
25+
secrets: inherit
26+
27+
Build-Preview:
28+
if: ${{ github.ref == 'refs/heads/preview' }}
29+
uses: dynamsoft-docs/Docs-Template-Repo/.github/workflows/called-workflow-build-sync-testing.yml@preview
30+
with:
31+
doc-repo: code-parser-docs-js
32+
doc-url: code-parser/docs/web
33+
secrets: inherit
34+
35+
Build-v2:
36+
if: ${{ github.ref == 'refs/heads/v2' }}
37+
uses: dynamsoft-docs/Docs-Template-Repo/.github/workflows/called-workflow-build-sync-production.yml@DCV-v2
38+
with:
39+
doc-repo: code-parser-docs-js
40+
doc-url: code-parser/docs/v2/web
41+
doc-branch: v2
42+
secrets: inherit

0 commit comments

Comments
 (0)