-
Notifications
You must be signed in to change notification settings - Fork 19
155 lines (147 loc) · 8.4 KB
/
AwesomeOxygenScriptforDITADocBuilding.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# This workflow will use OxygenScript to build features.
name: Awesome OxygenScript for DITA doc building (NG SDK)
on:
push:
# branches: [ master, 'release/**' ]
branches: ["master"]
pull_request:
# branches: [ master, 'release/**' ]
branches: ["master"]
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
echo "Start building docs for C++ CN"
echo "-----------------------------------------------------------------------------------------------"
echo "-----------------------------------------------------------------------------------------------"
./transform.sh -i ../../../dita/RTC-NG/RTC_NG_API_CPP.ditamap -sn "DITA Map HTML5 - NG C++" -s ../../../.github/workflows/exported_scenarios.scenarios -v
echo "Start building docs for Android CN"
echo "-----------------------------------------------------------------------------------------------"
echo "-----------------------------------------------------------------------------------------------"
./transform.sh -i ../../../dita/RTC-NG/RTC_NG_API_Android.ditamap -sn "DITA Map HTML5 - NG Android" -s ../../../.github/workflows/exported_scenarios.scenarios -v
echo "Start building docs for iOS CN"
echo "-----------------------------------------------------------------------------------------------"
echo "-----------------------------------------------------------------------------------------------"
./transform.sh -i ../../../dita/RTC-NG/RTC_NG_API_iOS.ditamap -sn "DITA Map HTML5 - NG iOS" -s ../../../.github/workflows/exported_scenarios.scenarios -v
echo "Start building docs for macOS CN"
echo "-----------------------------------------------------------------------------------------------"
echo "-----------------------------------------------------------------------------------------------"
./transform.sh -i ../../../dita/RTC-NG/RTC_NG_API_iOS.ditamap -sn "DITA Map HTML5 - NG macOS" -s ../../../.github/workflows/exported_scenarios.scenarios -v
echo "Start building docs for C++ EN"
echo "-----------------------------------------------------------------------------------------------"
echo "-----------------------------------------------------------------------------------------------"
./transform.sh -i ../../../en-US/dita/RTC-NG/RTC_NG_API_CPP.ditamap -sn "DITA Map HTML5 - NG C++" -s ../../../.github/workflows/exported_scenarios_en.scenarios -v
echo "Start building docs for Android EN"
echo "-----------------------------------------------------------------------------------------------"
echo "-----------------------------------------------------------------------------------------------"
./transform.sh -i ../../../en-US/dita/RTC-NG/RTC_NG_API_Android.ditamap -sn "DITA Map HTML5 - NG Android" -s ../../../.github/workflows/exported_scenarios_en.scenarios -v
echo "Start building docs for iOS EN"
echo "-----------------------------------------------------------------------------------------------"
echo "-----------------------------------------------------------------------------------------------"
./transform.sh -i ../../../en-US/dita/RTC-NG/RTC_NG_API_iOS.ditamap -sn "DITA Map HTML5 - NG iOS" -s ../../../.github/workflows/exported_scenarios_en.scenarios -v
echo "Start building docs for macOS EN"
echo "-----------------------------------------------------------------------------------------------"
echo "-----------------------------------------------------------------------------------------------"
./transform.sh -i ../../../en-US/dita/RTC-NG/RTC_NG_API_iOS.ditamap -sn "DITA Map HTML5 - NG macOS" -s ../../../.github/workflows/exported_scenarios_en.scenarios -v
- name: zip files
run: |
cd dita/RTC-NG/out
zip -qq -r cpp_ng_cn_doc.zip "c++ ng"
zip -qq -r ios_ng_cn_doc.zip "ios-ng"
zip -qq -r mac_ng_cn_doc.zip "mac-ng"
zip -qq -r android_ng_cn_doc.zip "android-ng"
cd ../../../en-US/dita/RTC-NG/out
zip -qq -r cpp_ng_en_doc.zip "c++ ng_en"
zip -qq -r ios_ng_en_doc.zip "ios-ng_en"
zip -qq -r mac_ng_en_doc.zip "mac-ng_en"
zip -qq -r android_ng_en_doc.zip "android-ng_en"
- name: Upload C++ NG CN doc to release
if: always()
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC-NG/out/cpp_ng_cn_doc.zip
asset_name: cpp_ng_cn_doc.zip
tag: main
overwrite: true
body: "DITA docs."
- name: Upload C++ NG EN doc to release
if: always()
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: en-US/dita/RTC-NG/out/cpp_ng_en_doc.zip
asset_name: cpp_ng_en_doc.zip
tag: main
overwrite: true
body: "DITA docs."
- name: Upload Android NG CN doc to release
if: always()
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC-NG/out/android_ng_cn_doc.zip
asset_name: android_ng_cn_doc.zip
tag: main
overwrite: true
body: "DITA docs."
- name: Upload Android NG EN doc to release
if: always()
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: en-US/dita/RTC-NG/out/android_ng_en_doc.zip
asset_name: android_ng_en_doc.zip
tag: main
overwrite: true
body: "DITA docs."
- name: Upload iOS NG CN doc to release
if: always()
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC-NG/out/ios_ng_cn_doc.zip
asset_name: ios_ng_cn_doc.zip
tag: main
overwrite: true
body: "DITA docs."
- name: Upload iOS NG EN doc to release
if: always()
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: en-US/dita/RTC-NG/out/ios_ng_en_doc.zip
asset_name: ios_ng_en_doc.zip
tag: main
overwrite: true
body: "DITA docs."
- name: Upload macOS NG CN doc to release
if: always()
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC-NG/out/mac_ng_cn_doc.zip
asset_name: mac_ng_cn_doc.zip
tag: main
overwrite: true
body: "DITA docs."
- name: Upload macOS NG EN doc to release
if: always()
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: en-US/dita/RTC-NG/out/mac_ng_en_doc.zip
asset_name: mac_ng_en_doc.zip
tag: main
overwrite: true
body: "DITA docs."