-
Notifications
You must be signed in to change notification settings - Fork 19
83 lines (71 loc) · 2.9 KB
/
AwesomeOxygenScriptforDITADocBuilding_CG.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
# This workflow will use OxygenScript to build features.
name: Awesome OxygenScript for DITA doc building (CG SDK)
on:
push:
# branches: [ master, 'release/**' ]
branches: [master]
branches: [ 'release/rtc/3.6.2-all' ]
pull_request:
branches: [ 'release/rtc/3.6.2-all' ]
# branches: [ master, 'release/**' ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: montudor/action-zip@v1
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8.0.332+9'
distribution: 'temurin'
- name: DITA doc building
run: |
cd scripts/oxygen/scripts
./transform.sh -i ../../../dita/RTC/RTC_API_CS.ditamap -sn "DITA Map HTML5 - CG C Sharp" -s ../../../.github/workflows/exported_scenarios.scenarios -v
./transform.sh -i ../../../dita/RTC/RTC_API_Flutter.ditamap -sn "DITA Map HTML5 - CG Flutter" -s ../../../.github/workflows/exported_scenarios.scenarios -v
./transform.sh -i ../../../en-US/dita/RTC/RTC_API_CS.ditamap -sn "DITA Map HTML5 - CG C Sharp" -s ../../../.github/workflows/exported_scenarios_en.scenarios -v
./transform.sh -i ../../../en-US/dita/RTC/RTC_API_Flutter.ditamap -sn "DITA Map HTML5 - CG Flutter" -s ../../../.github/workflows/exported_scenarios_en.scenarios -v
- name: zip files
run: |
cd dita/RTC-NG/out
zip -qq -r flutter_cg_cn_doc.zip "flutter_cg"
zip -qq -r cs_cg_cn_doc.zip "csharp_cg"
zip -qq -r flutter_cg_en_doc.zip "flutter_cg_en"
zip -qq -r cs_cg_en_doc.zip "csharp_cg_en"
- name: Upload Flutter CG CN doc to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC-NG/out/flutter_cg_cn_doc.zip
asset_name: flutter_cg_cn_doc.zip
tag: main
overwrite: true
body: "DITA docs."
- name: Upload CSharp CG CN doc to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC-NG/out/cs_cg_cn_doc.zip
asset_name: cs_cg_cn_doc.zip
tag: main
overwrite: true
body: "DITA docs."
- name: Upload Flutter CG EN doc to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC-NG/out/flutter_cg_en_doc.zip
asset_name: flutter_cg_en_doc.zip
tag: main
overwrite: true
body: "DITA docs."
- name: Upload CSharp CG EN doc to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC-NG/out/cs_cg_en_doc.zip
asset_name: cs_cg_en_doc.zip
tag: main
overwrite: true
body: "DITA docs."