Skip to content

Commit 8e9bba5

Browse files
update to internal commit 73f376ce
1 parent a5eb3f5 commit 8e9bba5

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/main.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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 master 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+

0 commit comments

Comments
 (0)