Skip to content

Commit e632c15

Browse files
committed
More CI updates
'stolen' from master
1 parent 5cf42e8 commit e632c15

33 files changed

+511
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ jobs:
6464
name: 'Create release: ${{ needs.get_tag_info.outputs.tag_name }}'
6565
needs:
6666
- get_tag_info # to access outputs
67-
- update_learn_playlists
6867
if: ${{ ! failure() && ! cancelled() && inputs.create_tag }} # run even if prior jobs were skipped
6968
runs-on: ubuntu-latest
7069
environment:
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: 'Update: Release Info'
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
mode:
7+
description: 'Mode: stable, testing (alpha, beta, rc)'
8+
default: 'testing'
9+
required: true
10+
tag:
11+
description: 'Release tag (latest stable by default)'
12+
required: false
13+
workflow_call:
14+
inputs:
15+
mode:
16+
description: 'Mode: stable, testing (alpha, beta, rc)'
17+
default: 'testing'
18+
type: string
19+
required: true
20+
tag:
21+
description: 'Release tag (latest stable by default)'
22+
type: string
23+
required: false
24+
environment:
25+
description: "Environment: use 'production' to prompt for approval"
26+
default: ''
27+
type: string
28+
required: false
29+
30+
defaults:
31+
run:
32+
shell: bash
33+
34+
jobs:
35+
update-release-info:
36+
runs-on: ubuntu-20.04
37+
environment:
38+
name: ${{ inputs.environment }} # can be empty/blank (if so, URL will not be shown)
39+
url: ${{ github.server_url }}/${{ github.repository }}/releases/${{ inputs.tag && format('tag/{0}', inputs.tag) || 'latest' }} # show on run page
40+
steps:
41+
- name: Clone repository
42+
uses: actions/checkout@v4
43+
44+
- name: Update info about the release in musescore-updates
45+
if: ${{ false }}
46+
run: |
47+
S3_URL="s3://musescore-updates/feed/latest.xml"
48+
S3_ALL_URL="s3://musescore-updates/feed/all.xml"
49+
50+
if [ ${{ inputs.mode }} == "testing" ]; then
51+
S3_URL="s3://musescore-updates/feed/latest.test.xml"
52+
S3_ALL_URL="s3://musescore-updates/feed/all.test.xml"
53+
fi
54+
55+
sudo bash ./build/ci/release/make_release_info_file.sh \
56+
--token ${{ secrets.GITHUB_TOKEN }} \
57+
--repo ${{ github.repository }} \
58+
--release_tag ${{ inputs.tag }}
59+
60+
sudo bash ./build/ci/release/push_file_to_s3.sh \
61+
--s3_key ${{ secrets.S3_KEY_UPDATE }} \
62+
--s3_secret ${{ secrets.S3_SECRET_UPDATE }} \
63+
--s3_url ${S3_URL} \
64+
--s3_bucket ${{ secrets.S3_BUCKET_UPDATE }} \
65+
--file_name "release_info.json"
66+
67+
sudo bash ./build/ci/release/make_previous_releases_notes.sh \
68+
--s3_key ${{ secrets.S3_KEY_UPDATE }} \
69+
--s3_secret ${{ secrets.S3_SECRET_UPDATE }} \
70+
--s3_url ${S3_ALL_URL} \
71+
--s3_bucket ${{ secrets.S3_BUCKET_UPDATE }} \
72+
--current_file_name "release_info.json" \
73+
--previous_file_name "previous_releases_notes.json"
74+
75+
sudo bash ./build/ci/release/push_file_to_s3.sh \
76+
--s3_key ${{ secrets.S3_KEY_UPDATE }} \
77+
--s3_secret ${{ secrets.S3_SECRET_UPDATE }} \
78+
--s3_url ${S3_ALL_URL} \
79+
--s3_bucket ${{ secrets.S3_BUCKET_UPDATE }} \
80+
--file_name "previous_releases_notes.json"

build/ci/linux/tools/make_appimage.sh

100644100755
File mode changed.

build/ci/lupdate/publish_to_tx.sh

100644100755
File mode changed.

build/ci/lupdate/run_lupdate.sh

100644100755
File mode changed.

build/ci/lupdate/setup.sh

100644100755
File mode changed.

build/ci/macos/build.sh

100644100755
File mode changed.

build/ci/macos/checkcodestyle.sh

100644100755
File mode changed.

build/ci/macos/notarize.sh

100644100755
File mode changed.

build/ci/macos/package.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)