Skip to content

Commit

Permalink
fixed backend workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkorsukov committed Feb 20, 2025
1 parent 72ca13b commit 19cfeb6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/build_backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,17 @@ jobs:
run: |
bash ./buildscripts/ci/backend/package.sh
- name: Build Docker
- name: Send package to S3
if: env.DO_PUBLISH == 'true'
run: |
bash ./buildscripts/ci/backend/publish_to_s3.sh \
--s3_key ${{ secrets.S3_KEY_CONVERTER }} \
--s3_secret ${{ secrets.S3_SECRET_CONVERTER }} \
--stage ${{ inputs.build_mode }} \
--mu_version ${{ env.VERSION }} \
--mu_version_major_minor ${{ env.VERSION_MAJOR_MINOR }}
- name: Build Docker (used package from S3)
if: env.DO_PUBLISH == 'true'
run: |
bash ./buildscripts/ci/backend/build_docker.sh
Expand All @@ -99,16 +109,7 @@ jobs:
- name: Deploy to musescore.com
if: env.DO_PUBLISH == 'true'
run: |
bash ./buildscripts/ci/backend/publish_to_s3.sh \
--s3_key ${{ secrets.S3_KEY_CONVERTER }} \
--s3_secret ${{ secrets.S3_SECRET_CONVERTER }} \
--stage ${{ inputs.build_mode }} \
--mu_version ${{ env.VERSION }} \
--mu_version_major_minor ${{ env.VERSION_MAJOR_MINOR }}
pip install jenkinsapi
python3 ./buildscripts/ci/backend/deploy.py --mu_version ${{ env.VERSION }} --api_token ${{ secrets.JENKINS_API_TOKEN }}
- name: Upload artifacts on GitHub
Expand Down
2 changes: 1 addition & 1 deletion buildscripts/ci/backend/docker/install_mu_template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ mkdir -p $MU_DIR

echo "=== Install MuseScore ${MU_VERSION} ==="
MU_DISTRO=MuseScore-${MU_VERSION}
wget -q --show-progress -O $MU_DIR/$MU_DISTRO.7z "$S3_URL/$MU_DISTRO.7z"
wget --show-progress -O $MU_DIR/$MU_DISTRO.7z "$S3_URL/$MU_DISTRO.7z"
7z x -y $MU_DIR/$MU_DISTRO.7z -o"$MU_DIR/"
$MU_DIR/convertor -v

0 comments on commit 19cfeb6

Please sign in to comment.