Skip to content

Commit 7d529f6

Browse files
committed
fixed backend workflow
1 parent 72ca13b commit 7d529f6

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

.github/workflows/build_backend.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,17 @@ jobs:
8686
run: |
8787
bash ./buildscripts/ci/backend/package.sh
8888
89-
- name: Build Docker
89+
- name: Send package to S3
90+
if: env.DO_PUBLISH == 'true'
91+
run: |
92+
bash ./buildscripts/ci/backend/publish_to_s3.sh \
93+
--s3_key ${{ secrets.S3_KEY_CONVERTER }} \
94+
--s3_secret ${{ secrets.S3_SECRET_CONVERTER }} \
95+
--stage ${{ inputs.build_mode }} \
96+
--mu_version ${{ env.VERSION }} \
97+
--mu_version_major_minor ${{ env.VERSION_MAJOR_MINOR }}
98+
99+
- name: Build Docker (used package from S3)
90100
if: env.DO_PUBLISH == 'true'
91101
run: |
92102
bash ./buildscripts/ci/backend/build_docker.sh
@@ -99,16 +109,7 @@ jobs:
99109
- name: Deploy to musescore.com
100110
if: env.DO_PUBLISH == 'true'
101111
run: |
102-
bash ./buildscripts/ci/backend/publish_to_s3.sh \
103-
--s3_key ${{ secrets.S3_KEY_CONVERTER }} \
104-
--s3_secret ${{ secrets.S3_SECRET_CONVERTER }} \
105-
--stage ${{ inputs.build_mode }} \
106-
--mu_version ${{ env.VERSION }} \
107-
--mu_version_major_minor ${{ env.VERSION_MAJOR_MINOR }}
108-
109-
110112
pip install jenkinsapi
111-
112113
python3 ./buildscripts/ci/backend/deploy.py --mu_version ${{ env.VERSION }} --api_token ${{ secrets.JENKINS_API_TOKEN }}
113114
114115
- name: Upload artifacts on GitHub

buildscripts/ci/backend/docker/install_mu_template.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ mkdir -p $MU_DIR
88

99
echo "=== Install MuseScore ${MU_VERSION} ==="
1010
MU_DISTRO=MuseScore-${MU_VERSION}
11-
wget -q --show-progress -O $MU_DIR/$MU_DISTRO.7z "$S3_URL/$MU_DISTRO.7z"
11+
wget --show-progress -O $MU_DIR/$MU_DISTRO.7z "$S3_URL/$MU_DISTRO.7z"
1212
7z x -y $MU_DIR/$MU_DISTRO.7z -o"$MU_DIR/"
1313
$MU_DIR/convertor -v
1414

0 commit comments

Comments
 (0)