Skip to content

Commit

Permalink
updated all yaml files to push built files only to their respective b…
Browse files Browse the repository at this point in the history
…ranches
  • Loading branch information
maxxfrazer committed May 25, 2023
1 parent accdb01 commit a79072b
Show file tree
Hide file tree
Showing 9 changed files with 63 additions and 39 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/AwesomeOxygenScriptforDITADocBuilding.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: montudor/action-zip@v1
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
Expand Down Expand Up @@ -80,7 +83,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC-NG/out/cpp_ng_cn_doc.zip
asset_name: cpp_ng_cn_doc.zip
tag: main
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "DITA docs."
- name: Upload C++ NG EN doc to release
Expand All @@ -90,7 +93,7 @@ jobs:
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
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "DITA docs."
- name: Upload Android NG CN doc to release
Expand All @@ -100,7 +103,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC-NG/out/android_ng_cn_doc.zip
asset_name: android_ng_cn_doc.zip
tag: main
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "DITA docs."
- name: Upload Android NG EN doc to release
Expand All @@ -110,7 +113,7 @@ jobs:
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
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "DITA docs."
- name: Upload iOS NG CN doc to release
Expand All @@ -120,7 +123,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC-NG/out/ios_ng_cn_doc.zip
asset_name: ios_ng_cn_doc.zip
tag: main
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "DITA docs."
- name: Upload iOS NG EN doc to release
Expand All @@ -130,7 +133,7 @@ jobs:
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
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "DITA docs."
- name: Upload macOS NG CN doc to release
Expand All @@ -140,7 +143,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC-NG/out/mac_ng_cn_doc.zip
asset_name: mac_ng_cn_doc.zip
tag: main
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "DITA docs."
- name: Upload macOS NG EN doc to release
Expand All @@ -150,6 +153,6 @@ jobs:
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
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "DITA docs."
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
with:
java-version: '8.0.332+9'
distribution: 'temurin'
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7
- name: DITA doc building
run: |
cd scripts/oxygen/scripts
Expand Down
19 changes: 11 additions & 8 deletions .github/workflows/NG-SDK-Framework-Doc-Building.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: montudor/action-zip@v1
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
Expand Down Expand Up @@ -81,7 +84,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC-NG/out/flutter_ng_cn_doc.zip
asset_name: flutter_ng_cn_doc.zip
tag: main
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "DITA docs."
- name: Upload Flutter NG EN doc to release
Expand All @@ -91,7 +94,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: en-US/dita/RTC-NG/out/flutter_ng_en_doc.zip
asset_name: flutter_ng_en_doc.zip
tag: main
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "DITA docs."
- name: Upload RN NG CN doc to release
Expand All @@ -101,7 +104,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC-NG/out/rn_ng_cn_doc.zip
asset_name: rn_ng_cn_doc.zip
tag: main
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "DITA docs."
- name: Upload RN NG EN doc to release
Expand All @@ -111,7 +114,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: en-US/dita/RTC-NG/out/rn_ng_en_doc.zip
asset_name: rn_ng_en_doc.zip
tag: main
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "DITA docs."
- name: Upload Unity NG CN doc to release
Expand All @@ -121,7 +124,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC-NG/out/unity_ng_cn_doc.zip
asset_name: unity_ng_cn_doc.zip
tag: main
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "DITA docs."
- name: Upload Unity NG EN doc to release
Expand All @@ -131,7 +134,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: en-US/dita/RTC-NG/out/unity_ng_en_doc.zip
asset_name: unity_ng_en_doc.zip
tag: main
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "DITA docs."
- name: Upload Electron NG CN doc to release
Expand All @@ -141,7 +144,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC-NG/out/electron_ng_cn_doc.zip
asset_name: electron_ng_cn_doc.zip
tag: main
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "DITA docs."
- name: Upload Electron NG EN doc to release
Expand All @@ -151,6 +154,6 @@ jobs:
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: main
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "DITA docs."
11 changes: 7 additions & 4 deletions .github/workflows/python-app-3.8.200-electron-yaxi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up python 3.8
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: '3.8'
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7
- name: Install dependencies
run: |
cd xml2json
Expand All @@ -42,7 +45,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: xml2json/electron_ng_cn.json
asset_name: electron_ng_json_template_cn.json
tag: main
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "Template file for automatic comment population."
- name: Upload electron NG JSON to release
Expand All @@ -52,7 +55,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: xml2json/electron_ng_en.json
asset_name: electron_ng_json_template_en.json
tag: main
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "Template file for automatic comment population."

11 changes: 7 additions & 4 deletions .github/workflows/python-app-3.8.200-framework.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up python 3.8
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: '3.8'
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7
- name: Install dependencies
run: |
cd xml2json
Expand All @@ -44,7 +47,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: xml2json/unity_cn_ng.json
asset_name: unity_ng_doc_template_cn.json
tag: main
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "Template file for automatic comment population."
- name: Upload Unity NG JSON to release
Expand All @@ -54,6 +57,6 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: xml2json/unity_en_ng.json
asset_name: unity_ng_doc_template_en.json
tag: main
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "Template file for automatic comment population."
11 changes: 7 additions & 4 deletions .github/workflows/python-app-3.8.200-kelu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up python 3.8
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: '3.8'
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7
- name: Install dependencies
run: |
cd xml2json
Expand All @@ -42,7 +45,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: xml2json/rn_cn_ng.json
asset_name: rn_ng_json_template_cn.json
tag: main
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "Template file for automatic comment population."
- name: Upload RN NG JSON to release
Expand All @@ -52,6 +55,6 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: xml2json/rn_en_ng.json
asset_name: rn_ng_json_template_en.json
tag: main
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "Template file for automatic comment population."
11 changes: 7 additions & 4 deletions .github/workflows/python-app-fc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: montudor/action-zip@v1
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
Expand Down Expand Up @@ -69,7 +72,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: en-US/dita/flexible-classroom/edu-context/out/fc-android-en-doc.zip
asset_name: fc-android-en-doc.zip
tag: main
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "DITA docs."
- name: Upload FC EN iOS doc to release
Expand All @@ -78,7 +81,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: en-US/dita/flexible-classroom/edu-context/out/fc-ios-en-doc.zip
asset_name: fc-ios-en-doc.zip
tag: main
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "DITA docs."
- name: Upload FC CN Android doc to release
Expand All @@ -87,7 +90,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/flexible-classroom/edu-context/out/fc-android-cn-doc.zip
asset_name: fc-android-cn-doc.zip
tag: main
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "DITA docs."
- name: Upload FC CN iOS doc to release
Expand All @@ -96,6 +99,6 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/flexible-classroom/edu-context/out/fc-ios-cn-doc.zip
asset_name: fc-ios-cn-doc.zip
tag: main
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "DITA docs."
11 changes: 7 additions & 4 deletions .github/workflows/python-app-ng-flutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up python 3.8
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: '3.8'
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7
- name: Install dependencies
run: |
cd xml2json
Expand All @@ -42,7 +45,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: xml2json/flutter_cn_ng.json
asset_name: flutter_ng_json_template_cn.json
tag: main
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "Template file for automatic comment population."
- name: Upload Flutter NG EN JSON to release
Expand All @@ -52,7 +55,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: xml2json/flutter_en_ng.json
asset_name: flutter_ng_json_template_en.json
tag: main
tag: ${{ steps.branch-name.outputs.current_branch }}
overwrite: true
body: "Template file for automatic comment population."

6 changes: 3 additions & 3 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up python 3.8
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: '3.8'
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7
Expand Down

0 comments on commit a79072b

Please sign in to comment.