Skip to content

Commit

Permalink
update yaml scripts to have one for all 4.x docs
Browse files Browse the repository at this point in the history
  • Loading branch information
maxxfrazer committed May 25, 2023
1 parent 3800fae commit 30d9eb2
Show file tree
Hide file tree
Showing 11 changed files with 127 additions and 19 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/AwesomeOxygenScriptforDITADocBuilding.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ jobs:
file: dita/RTC-NG/out/cpp_ng_cn_doc.zip
asset_name: cpp_ng_cn_doc.zip
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "DITA docs."
- name: Upload C++ NG EN doc to release
Expand All @@ -94,6 +95,7 @@ jobs:
file: en-US/dita/RTC-NG/out/cpp_ng_en_doc.zip
asset_name: cpp_ng_en_doc.zip
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "DITA docs."
- name: Upload Android NG CN doc to release
Expand All @@ -104,6 +106,7 @@ jobs:
file: dita/RTC-NG/out/android_ng_cn_doc.zip
asset_name: android_ng_cn_doc.zip
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "DITA docs."
- name: Upload Android NG EN doc to release
Expand All @@ -114,6 +117,7 @@ jobs:
file: en-US/dita/RTC-NG/out/android_ng_en_doc.zip
asset_name: android_ng_en_doc.zip
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "DITA docs."
- name: Upload iOS NG CN doc to release
Expand All @@ -124,6 +128,7 @@ jobs:
file: dita/RTC-NG/out/ios_ng_cn_doc.zip
asset_name: ios_ng_cn_doc.zip
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "DITA docs."
- name: Upload iOS NG EN doc to release
Expand All @@ -134,6 +139,7 @@ jobs:
file: en-US/dita/RTC-NG/out/ios_ng_en_doc.zip
asset_name: ios_ng_en_doc.zip
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "DITA docs."
- name: Upload macOS NG CN doc to release
Expand All @@ -144,6 +150,7 @@ jobs:
file: dita/RTC-NG/out/mac_ng_cn_doc.zip
asset_name: mac_ng_cn_doc.zip
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "DITA docs."
- name: Upload macOS NG EN doc to release
Expand All @@ -154,5 +161,6 @@ jobs:
file: en-US/dita/RTC-NG/out/mac_ng_en_doc.zip
asset_name: mac_ng_en_doc.zip
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "DITA docs."
12 changes: 8 additions & 4 deletions .github/workflows/AwesomeOxygenScriptforDITADocBuilding_CG.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC/out/flutter_cg_cn_doc.zip
asset_name: flutter_cg_cn_doc.zip
tag: main
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "DITA docs."

Expand All @@ -77,7 +78,8 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC/out/cs_cg_cn_doc.zip
asset_name: cs_cg_cn_doc.zip
tag: main
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "DITA docs."

Expand All @@ -87,7 +89,8 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: en-US/dita/RTC/out/flutter_cg_en_doc.zip
asset_name: flutter_cg_en_doc.zip
tag: main
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "DITA docs."

Expand All @@ -97,6 +100,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: en-US/dita/RTC/out/cs_cg_en_doc.zip
asset_name: cs_cg_en_doc.zip
tag: main
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "DITA docs."
8 changes: 8 additions & 0 deletions .github/workflows/NG-SDK-Framework-Doc-Building.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ jobs:
file: dita/RTC-NG/out/flutter_ng_cn_doc.zip
asset_name: flutter_ng_cn_doc.zip
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "DITA docs."
- name: Upload Flutter NG EN doc to release
Expand All @@ -95,6 +96,7 @@ jobs:
file: en-US/dita/RTC-NG/out/flutter_ng_en_doc.zip
asset_name: flutter_ng_en_doc.zip
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "DITA docs."
- name: Upload RN NG CN doc to release
Expand All @@ -105,6 +107,7 @@ jobs:
file: dita/RTC-NG/out/rn_ng_cn_doc.zip
asset_name: rn_ng_cn_doc.zip
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "DITA docs."
- name: Upload RN NG EN doc to release
Expand All @@ -115,6 +118,7 @@ jobs:
file: en-US/dita/RTC-NG/out/rn_ng_en_doc.zip
asset_name: rn_ng_en_doc.zip
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "DITA docs."
- name: Upload Unity NG CN doc to release
Expand All @@ -125,6 +129,7 @@ jobs:
file: dita/RTC-NG/out/unity_ng_cn_doc.zip
asset_name: unity_ng_cn_doc.zip
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "DITA docs."
- name: Upload Unity NG EN doc to release
Expand All @@ -135,6 +140,7 @@ jobs:
file: en-US/dita/RTC-NG/out/unity_ng_en_doc.zip
asset_name: unity_ng_en_doc.zip
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "DITA docs."
- name: Upload Electron NG CN doc to release
Expand All @@ -145,6 +151,7 @@ jobs:
file: dita/RTC-NG/out/electron_ng_cn_doc.zip
asset_name: electron_ng_cn_doc.zip
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "DITA docs."
- name: Upload Electron NG EN doc to release
Expand All @@ -155,5 +162,6 @@ jobs:
file: en-US/dita/RTC-NG/out/electron_ng_en_doc.zip
asset_name: electron_ng_en_doc.zip
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "DITA docs."
2 changes: 2 additions & 0 deletions .github/workflows/python-app-3.8.200-electron-yaxi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
file: xml2json/electron_ng_cn.json
asset_name: electron_ng_json_template_cn.json
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "Template file for automatic comment population."
- name: Upload electron NG JSON to release
Expand All @@ -56,6 +57,7 @@ jobs:
file: xml2json/electron_ng_en.json
asset_name: electron_ng_json_template_en.json
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "Template file for automatic comment population."

3 changes: 3 additions & 0 deletions .github/workflows/python-app-3.8.200-framework.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
- 'master'
jobs:
build:
if: ${{ false }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -48,6 +49,7 @@ jobs:
file: xml2json/unity_cn_ng.json
asset_name: unity_ng_doc_template_cn.json
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "Template file for automatic comment population."
- name: Upload Unity NG JSON to release
Expand All @@ -58,5 +60,6 @@ jobs:
file: xml2json/unity_en_ng.json
asset_name: unity_ng_doc_template_en.json
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "Template file for automatic comment population."
3 changes: 3 additions & 0 deletions .github/workflows/python-app-3.8.200-kelu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
- 'master'
jobs:
build:
if: ${{ false }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -46,6 +47,7 @@ jobs:
file: xml2json/rn_cn_ng.json
asset_name: rn_ng_json_template_cn.json
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "Template file for automatic comment population."
- name: Upload RN NG JSON to release
Expand All @@ -56,5 +58,6 @@ jobs:
file: xml2json/rn_en_ng.json
asset_name: rn_ng_json_template_en.json
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "Template file for automatic comment population."
71 changes: 71 additions & 0 deletions .github/workflows/python-app-4-all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# GitHub CI build pipeline
name: Build all 4.x Doc JSON Files

on:
push:
branches:
- 'master'
pull_request:
branches:
- 'master'
jobs:
build:
strategy:
matrix:
platform: [flutter, ios, macos, electron, unity, rn]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up python 3.8
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7
- name: Install dependencies
run: |
cd xml2json
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run CN json creation
run: |
cd xml2json
echo "Running for ${{matrix.platform}} NG"
python xml2json.py --working_dir ../dita/RTC-NG --platform_tag ${{matrix.platform}} --json_file ${{matrix.platform}}_cn_ng.json --sdk_type rtc-ng --remove_sdk_type rtc --defined_path ${{matrix.platform}}-ng
- name: Run EN json creation
run: |
cd xml2json
echo "Running for ${{matrix.platform}} NG"
python xml2json.py --working_dir ../en-US/dita/RTC-NG --platform_tag ${{matrix.platform}} --json_file ${{matrix.platform}}_en_ng.json --sdk_type rtc-ng --remove_sdk_type rtc --defined_path ${{matrix.platform}}-ng
- name: Upload CN Artifact
uses: actions/upload-artifact@v3
with:
name: ${{matrix.platform}}_ng_json_template_cn.json
path: xml2json/${{matrix.platform}}_cn_ng.json
- name: Upload EN Artifact
uses: actions/upload-artifact@v3
with:
name: ${{matrix.platform}}_ng_json_template_en.json
path: xml2json/${{matrix.platform}}_en_ng.json
- name: Upload ${{matrix.platform}} NG CN JSON to release
if: github.ref == github.event.repository.default_branch
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: xml2json/${{matrix.platform}}_cn_ng.json
asset_name: ${{matrix.platform}}_ng_json_template_cn.json
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "Template file for automatic comment population."
- name: Upload ${{matrix.platform}} NG EN JSON to release
if: github.ref == github.event.repository.default_branch
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: xml2json/${{matrix.platform}}_en_ng.json
asset_name: ${{matrix.platform}}_ng_json_template_en.json
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "Template file for automatic comment population."

4 changes: 4 additions & 0 deletions .github/workflows/python-app-fc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ jobs:
file: en-US/dita/flexible-classroom/edu-context/out/fc-android-en-doc.zip
asset_name: fc-android-en-doc.zip
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "DITA docs."
- name: Upload FC EN iOS doc to release
Expand All @@ -82,6 +83,7 @@ jobs:
file: en-US/dita/flexible-classroom/edu-context/out/fc-ios-en-doc.zip
asset_name: fc-ios-en-doc.zip
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "DITA docs."
- name: Upload FC CN Android doc to release
Expand All @@ -91,6 +93,7 @@ jobs:
file: dita/flexible-classroom/edu-context/out/fc-android-cn-doc.zip
asset_name: fc-android-cn-doc.zip
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "DITA docs."
- name: Upload FC CN iOS doc to release
Expand All @@ -100,5 +103,6 @@ jobs:
file: dita/flexible-classroom/edu-context/out/fc-ios-cn-doc.zip
asset_name: fc-ios-cn-doc.zip
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "DITA docs."
1 change: 1 addition & 0 deletions .github/workflows/python-app-ng-flutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- 'master'
jobs:
build:
if: ${{ false }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- master
jobs:
build:
if: ${{ false }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -49,6 +50,7 @@ jobs:
file: xml2json/flutter_newer.json
asset_name: flutter_doc_template.json
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "Template file for automatic comment population."
- name: Upload CS CG JSON to release
Expand All @@ -58,6 +60,7 @@ jobs:
file: xml2json/csharp_cg.json
asset_name: csharp_cg_doc_template.json
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "Template file for automatic comment population."
- name: Upload iOS JSON to release
Expand All @@ -67,6 +70,7 @@ jobs:
file: xml2json/ios_ng_en.json
asset_name: ios_en_ng_doc_template.json
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "Template file for automatic comment population."
- name: Upload macOS JSON to release
Expand All @@ -76,5 +80,6 @@ jobs:
file: xml2json/macos_ng_en.json
asset_name: macos_ng_en_doc_template.json
tag: ${{ steps.branch-name.outputs.current_branch }}
make_latest: false
overwrite: true
body: "Template file for automatic comment population."
Loading

0 comments on commit 30d9eb2

Please sign in to comment.