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 30d9eb2 commit bcd2225
Show file tree
Hide file tree
Showing 10 changed files with 182 additions and 393 deletions.
73 changes: 57 additions & 16 deletions .github/workflows/AwesomeOxygenScriptforDITADocBuilding.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,49 @@ jobs:
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 Artifact
uses: actions/upload-artifact@v3
with:
path: dita/RTC-NG/out/cpp_ng_cn_doc.zip
name: cpp_ng_cn_doc.zip
- name: Upload C++ NG EN doc Artifact
uses: actions/upload-artifact@v3
with:
path: en-US/dita/RTC-NG/out/cpp_ng_en_doc.zip
name: cpp_ng_en_doc.zip
- name: Upload Android NG CN doc Artifact
uses: actions/upload-artifact@v3
with:
path: dita/RTC-NG/out/android_ng_cn_doc.zip
name: android_ng_cn_doc.zip
- name: Upload Android NG EN doc Artifact
uses: actions/upload-artifact@v3
with:
path: en-US/dita/RTC-NG/out/android_ng_en_doc.zip
name: android_ng_en_doc.zip
- name: Upload iOS NG CN doc Artifact
uses: actions/upload-artifact@v3
with:
path: dita/RTC-NG/out/ios_ng_cn_doc.zip
name: ios_ng_cn_doc.zip
- name: Upload iOS NG EN doc Artifact
uses: actions/upload-artifact@v3
with:
path: en-US/dita/RTC-NG/out/ios_ng_en_doc.zip
name: ios_ng_en_doc.zip
- name: Upload macOS NG CN doc Artifact
uses: actions/upload-artifact@v3
with:
path: dita/RTC-NG/out/mac_ng_cn_doc.zip
name: mac_ng_cn_doc.zip
- name: Upload macOS NG EN doc Artifact
uses: actions/upload-artifact@v3
with:
path: en-US/dita/RTC-NG/out/mac_ng_en_doc.zip
name: mac_ng_en_doc.zip
- name: Upload C++ NG CN doc to release
if: always()
uses: svenstaro/upload-release-action@v2
if: github.ref == github.event.repository.default_branch
uses: svenstaro/upload-release-action@2.5.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC-NG/out/cpp_ng_cn_doc.zip
Expand All @@ -88,8 +128,8 @@ jobs:
overwrite: true
body: "DITA docs."
- name: Upload C++ NG EN doc to release
if: always()
uses: svenstaro/upload-release-action@v2
if: github.ref == github.event.repository.default_branch
uses: svenstaro/upload-release-action@2.5.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: en-US/dita/RTC-NG/out/cpp_ng_en_doc.zip
Expand All @@ -99,8 +139,8 @@ jobs:
overwrite: true
body: "DITA docs."
- name: Upload Android NG CN doc to release
if: always()
uses: svenstaro/upload-release-action@v2
if: github.ref == github.event.repository.default_branch
uses: svenstaro/upload-release-action@2.5.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC-NG/out/android_ng_cn_doc.zip
Expand All @@ -110,8 +150,8 @@ jobs:
overwrite: true
body: "DITA docs."
- name: Upload Android NG EN doc to release
if: always()
uses: svenstaro/upload-release-action@v2
if: github.ref == github.event.repository.default_branch
uses: svenstaro/upload-release-action@2.5.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: en-US/dita/RTC-NG/out/android_ng_en_doc.zip
Expand All @@ -121,8 +161,8 @@ jobs:
overwrite: true
body: "DITA docs."
- name: Upload iOS NG CN doc to release
if: always()
uses: svenstaro/upload-release-action@v2
if: github.ref == github.event.repository.default_branch
uses: svenstaro/upload-release-action@2.5.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC-NG/out/ios_ng_cn_doc.zip
Expand All @@ -132,8 +172,8 @@ jobs:
overwrite: true
body: "DITA docs."
- name: Upload iOS NG EN doc to release
if: always()
uses: svenstaro/upload-release-action@v2
if: github.ref == github.event.repository.default_branch
uses: svenstaro/upload-release-action@2.5.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: en-US/dita/RTC-NG/out/ios_ng_en_doc.zip
Expand All @@ -143,8 +183,8 @@ jobs:
overwrite: true
body: "DITA docs."
- name: Upload macOS NG CN doc to release
if: always()
uses: svenstaro/upload-release-action@v2
if: github.ref == github.event.repository.default_branch
uses: svenstaro/upload-release-action@2.5.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC-NG/out/mac_ng_cn_doc.zip
Expand All @@ -154,8 +194,8 @@ jobs:
overwrite: true
body: "DITA docs."
- name: Upload macOS NG EN doc to release
if: always()
uses: svenstaro/upload-release-action@v2
if: github.ref == github.event.repository.default_branch
uses: svenstaro/upload-release-action@2.5.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: en-US/dita/RTC-NG/out/mac_ng_en_doc.zip
Expand All @@ -164,3 +204,4 @@ jobs:
make_latest: false
overwrite: true
body: "DITA docs."

45 changes: 37 additions & 8 deletions .github/workflows/AwesomeOxygenScriptforDITADocBuilding_CG.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,33 @@ jobs:
zip -qq -r cs_cg_en_doc.zip "csharp_cg_en"
ls
- name: Upload Flutter CG CN doc to release
uses: svenstaro/upload-release-action@v2
- name: Upload Flutter CG CN doc Artifact
uses: actions/upload-artifact@v3
with:
path: dita/RTC/out/flutter_cg_cn_doc.zip
name: flutter_cg_cn_doc.zip

- name: Upload CSharp CG CN doc Artifact
uses: actions/upload-artifact@v3
with:
path: dita/RTC/out/cs_cg_cn_doc.zip
name: cs_cg_cn_doc.zip

- name: Upload Flutter CG EN doc Artifact
uses: actions/upload-artifact@v3
with:
path: en-US/dita/RTC/out/flutter_cg_en_doc.zip
name: flutter_cg_en_doc.zip

- name: Upload CSharp CG EN doc Artifact
uses: actions/upload-artifact@v3
with:
path: en-US/dita/RTC/out/cs_cg_en_doc.zip
name: cs_cg_en_doc.zip

- name: Upload Flutter CG CN doc Artifact
if: github.ref == github.event.repository.default_branch
uses: svenstaro/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC/out/flutter_cg_cn_doc.zip
Expand All @@ -71,9 +96,10 @@ jobs:
make_latest: false
overwrite: true
body: "DITA docs."

- name: Upload CSharp CG CN doc to release
uses: svenstaro/upload-release-action@v2
if: github.ref == github.event.repository.default_branch
uses: svenstaro/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC/out/cs_cg_cn_doc.zip
Expand All @@ -82,9 +108,10 @@ jobs:
make_latest: false
overwrite: true
body: "DITA docs."

- name: Upload Flutter CG EN doc to release
uses: svenstaro/upload-release-action@v2
if: github.ref == github.event.repository.default_branch
uses: svenstaro/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: en-US/dita/RTC/out/flutter_cg_en_doc.zip
Expand All @@ -93,9 +120,10 @@ jobs:
make_latest: false
overwrite: true
body: "DITA docs."

- name: Upload CSharp CG EN doc to release
uses: svenstaro/upload-release-action@v2
if: github.ref == github.event.repository.default_branch
uses: svenstaro/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: en-US/dita/RTC/out/cs_cg_en_doc.zip
Expand All @@ -104,3 +132,4 @@ jobs:
make_latest: false
overwrite: true
body: "DITA docs."

74 changes: 57 additions & 17 deletions .github/workflows/NG-SDK-Framework-Doc-Building.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,49 @@ jobs:
zip -qq -r unity_ng_en_doc.zip "unity-ng"
zip -qq -r electron_ng_en_doc.zip "electron-ng"
- name: Upload Flutter NG CN doc Artifact
uses: actions/upload-artifact@v3
with:
path: dita/RTC-NG/out/flutter_ng_cn_doc.zip
name: flutter_ng_cn_doc.zip
- name: Upload Flutter NG EN doc Artifact
uses: actions/upload-artifact@v3
with:
path: en-US/dita/RTC-NG/out/flutter_ng_en_doc.zip
name: flutter_ng_en_doc.zip
- name: Upload RN NG CN doc Artifact
uses: actions/upload-artifact@v3
with:
path: dita/RTC-NG/out/rn_ng_cn_doc.zip
name: rn_ng_cn_doc.zip
- name: Upload RN NG EN doc Artifact
uses: actions/upload-artifact@v3
with:
path: en-US/dita/RTC-NG/out/rn_ng_en_doc.zip
name: rn_ng_en_doc.zip
- name: Upload Unity NG CN doc Artifact
uses: actions/upload-artifact@v3
with:
path: dita/RTC-NG/out/unity_ng_cn_doc.zip
name: unity_ng_cn_doc.zip
- name: Upload Unity NG EN doc Artifact
uses: actions/upload-artifact@v3
with:
path: en-US/dita/RTC-NG/out/unity_ng_en_doc.zip
name: unity_ng_en_doc.zip
- name: Upload Electron NG CN doc Artifact
uses: actions/upload-artifact@v3
with:
path: dita/RTC-NG/out/electron_ng_cn_doc.zip
name: electron_ng_cn_doc.zip
- name: Upload Electron NG EN doc Artifact
uses: actions/upload-artifact@v3
with:
path: en-US/dita/RTC-NG/out/electron_ng_en_doc.zip
name: electron_ng_en_doc.zip
- name: Upload Flutter NG CN doc to release
if: always()
uses: svenstaro/upload-release-action@v2
if: github.ref == github.event.repository.default_branch
uses: svenstaro/upload-release-action@2.5.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC-NG/out/flutter_ng_cn_doc.zip
Expand All @@ -89,8 +129,8 @@ jobs:
overwrite: true
body: "DITA docs."
- name: Upload Flutter NG EN doc to release
if: always()
uses: svenstaro/upload-release-action@v2
if: github.ref == github.event.repository.default_branch
uses: svenstaro/upload-release-action@2.5.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: en-US/dita/RTC-NG/out/flutter_ng_en_doc.zip
Expand All @@ -100,8 +140,8 @@ jobs:
overwrite: true
body: "DITA docs."
- name: Upload RN NG CN doc to release
if: always()
uses: svenstaro/upload-release-action@v2
if: github.ref == github.event.repository.default_branch
uses: svenstaro/upload-release-action@2.5.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC-NG/out/rn_ng_cn_doc.zip
Expand All @@ -111,8 +151,8 @@ jobs:
overwrite: true
body: "DITA docs."
- name: Upload RN NG EN doc to release
if: always()
uses: svenstaro/upload-release-action@v2
if: github.ref == github.event.repository.default_branch
uses: svenstaro/upload-release-action@2.5.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: en-US/dita/RTC-NG/out/rn_ng_en_doc.zip
Expand All @@ -122,8 +162,8 @@ jobs:
overwrite: true
body: "DITA docs."
- name: Upload Unity NG CN doc to release
if: always()
uses: svenstaro/upload-release-action@v2
if: github.ref == github.event.repository.default_branch
uses: svenstaro/upload-release-action@2.5.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC-NG/out/unity_ng_cn_doc.zip
Expand All @@ -133,8 +173,8 @@ jobs:
overwrite: true
body: "DITA docs."
- name: Upload Unity NG EN doc to release
if: always()
uses: svenstaro/upload-release-action@v2
if: github.ref == github.event.repository.default_branch
uses: svenstaro/upload-release-action@2.5.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: en-US/dita/RTC-NG/out/unity_ng_en_doc.zip
Expand All @@ -144,8 +184,8 @@ jobs:
overwrite: true
body: "DITA docs."
- name: Upload Electron NG CN doc to release
if: always()
uses: svenstaro/upload-release-action@v2
if: github.ref == github.event.repository.default_branch
uses: svenstaro/upload-release-action@2.5.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC-NG/out/electron_ng_cn_doc.zip
Expand All @@ -155,13 +195,13 @@ jobs:
overwrite: true
body: "DITA docs."
- name: Upload Electron NG EN doc to release
if: always()
uses: svenstaro/upload-release-action@v2
if: github.ref == github.event.repository.default_branch
uses: svenstaro/upload-release-action@2.5.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
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."
body: "DITA docs."
Loading

0 comments on commit bcd2225

Please sign in to comment.