|
|
|
|
@ -25,9 +25,9 @@ jobs:
@@ -25,9 +25,9 @@ jobs:
|
|
|
|
|
|
|
|
|
|
# - name: Branch check |
|
|
|
|
# run: | |
|
|
|
|
# if [[ "$GITHUB_REF" != "refs/heads/master" ]] && [[ "$GITHUB_REF" != "refs/heads/rc" ]] && [[ $GITHUB_REF != refs/heads/hotfix-rc/* ]]; then |
|
|
|
|
# if [[ "$GITHUB_REF" != "refs/heads/master" ]] && [[ "$GITHUB_REF" != "refs/heads/rc" ]] && [[ $GITHUB_REF != "refs/heads/hotfix-rc" ]]; then |
|
|
|
|
# echo "===================================" |
|
|
|
|
# echo "[!] Can only release from the 'master', 'rc' or 'hotfix-rc/*' branches" |
|
|
|
|
# echo "[!] Can only release from the 'master', 'rc' or 'hotfix-rc' branches" |
|
|
|
|
# echo "===================================" |
|
|
|
|
# exit 1 |
|
|
|
|
# fi |
|
|
|
|
@ -609,19 +609,13 @@ jobs:
@@ -609,19 +609,13 @@ jobs:
|
|
|
|
|
if: steps.build-cache.outputs.cache-hit != 'true' |
|
|
|
|
run: npm run build |
|
|
|
|
|
|
|
|
|
- name: Extract branch name |
|
|
|
|
if: contains(github.ref, 'hotfix-rc') |
|
|
|
|
id: extract_branch |
|
|
|
|
shell: bash |
|
|
|
|
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" |
|
|
|
|
|
|
|
|
|
- name: Download artifact from hotfix-rc |
|
|
|
|
if: contains(github.ref, 'hotfix-rc') |
|
|
|
|
if: github.ref == 'refs/heads/hotfix-rc') |
|
|
|
|
uses: dawidd6/action-download-artifact@b2abf1705491048a2d7074f7d90513044fd25d39 # v2.19.0 |
|
|
|
|
with: |
|
|
|
|
workflow: build-browser.yml |
|
|
|
|
workflow_conclusion: success |
|
|
|
|
branch: ${{ steps.extract_branch.outputs.branch }} |
|
|
|
|
branch: hotfix-rc |
|
|
|
|
path: ${{ github.workspace }}/browser-build-artifacts |
|
|
|
|
|
|
|
|
|
- name: Download artifact from rc |
|
|
|
|
@ -634,7 +628,7 @@ jobs:
@@ -634,7 +628,7 @@ jobs:
|
|
|
|
|
path: ${{ github.workspace }}/browser-build-artifacts |
|
|
|
|
|
|
|
|
|
- name: Download artifact from master |
|
|
|
|
if: ${{ github.ref != 'refs/heads/rc' && !contains(github.ref, 'hotfix-rc') }} |
|
|
|
|
if: ${{ github.ref != 'refs/heads/rc' && github.ref != 'refs/heads/hotfix-rc' }} |
|
|
|
|
uses: dawidd6/action-download-artifact@b2abf1705491048a2d7074f7d90513044fd25d39 # v2.19.0 |
|
|
|
|
with: |
|
|
|
|
workflow: build-browser.yml |
|
|
|
|
@ -815,19 +809,13 @@ jobs:
@@ -815,19 +809,13 @@ jobs:
|
|
|
|
|
if: steps.build-cache.outputs.cache-hit != 'true' |
|
|
|
|
run: npm run build |
|
|
|
|
|
|
|
|
|
- name: Extract branch name |
|
|
|
|
if: contains(github.ref, 'hotfix-rc') |
|
|
|
|
id: extract_branch |
|
|
|
|
shell: bash |
|
|
|
|
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" |
|
|
|
|
|
|
|
|
|
- name: Download artifact from hotfix-rc |
|
|
|
|
if: contains(github.ref, 'hotfix-rc') |
|
|
|
|
if: github.ref == 'refs/heads/hotfix-rc') |
|
|
|
|
uses: dawidd6/action-download-artifact@b2abf1705491048a2d7074f7d90513044fd25d39 # v2.19.0 |
|
|
|
|
with: |
|
|
|
|
workflow: build-browser.yml |
|
|
|
|
workflow_conclusion: success |
|
|
|
|
branch: ${{ steps.extract_branch.outputs.branch }} |
|
|
|
|
branch: hotfix-rc |
|
|
|
|
path: ${{ github.workspace }}/browser-build-artifacts |
|
|
|
|
|
|
|
|
|
- name: Download artifact from rc |
|
|
|
|
@ -840,7 +828,7 @@ jobs:
@@ -840,7 +828,7 @@ jobs:
|
|
|
|
|
path: ${{ github.workspace }}/browser-build-artifacts |
|
|
|
|
|
|
|
|
|
- name: Download artifact from master |
|
|
|
|
if: ${{ github.ref != 'refs/heads/rc' && !contains(github.ref, 'hotfix-rc') }} |
|
|
|
|
if: ${{ github.ref != 'refs/heads/rc' && github.ref != 'refs/heads/hotfix-rc' }} |
|
|
|
|
uses: dawidd6/action-download-artifact@b2abf1705491048a2d7074f7d90513044fd25d39 # v2.19.0 |
|
|
|
|
with: |
|
|
|
|
workflow: build-browser.yml |
|
|
|
|
@ -917,4 +905,4 @@ jobs:
@@ -917,4 +905,4 @@ jobs:
|
|
|
|
|
# aws s3 cp ./ $AWS_S3_BUCKET_NAME/desktop/ \ |
|
|
|
|
# --acl "public-read" \ |
|
|
|
|
# --recursive \ |
|
|
|
|
# --quiet |
|
|
|
|
# --quiet |
|
|
|
|
|