Skip to content

Commit e71091b

Browse files
authored
Prepare workflows for M and RC builds (#1712)
* Prepare Eclipse distro RC builds Signed-off-by: BoykoAlex <[email protected]> * Correct workflow parameter name Signed-off-by: BoykoAlex <[email protected]> * LS extensions build based on e4.37 for release workflow Signed-off-by: BoykoAlex <[email protected]> * More parameter name changes Signed-off-by: BoykoAlex <[email protected]> * Distro workflow corrections Signed-off-by: BoykoAlex <[email protected]> * Distro publishing changes for RCs Signed-off-by: BoykoAlex <[email protected]> * Better parameter description Signed-off-by: BoykoAlex <[email protected]> --------- Signed-off-by: BoykoAlex <[email protected]>
1 parent ba11194 commit e71091b

File tree

5 files changed

+38
-22
lines changed

5 files changed

+38
-22
lines changed

.github/workflows/announce-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
inputs:
66
version:
7-
description: Release version (i.e. 4.20.1)
7+
description: Release version (i.e. 4.20.1, 4.32.1.RELEASE, 4.22.1.M3)
88
required: true
99
type: string
1010

.github/workflows/gh-hosted-eclipse-distro-build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ jobs:
111111
p2_path=${{ inputs.build_type }}/update/$eclipse_version
112112
else
113113
p2_qualifier=${{ inputs.p2-qualifier }}
114+
version_segment=${{ steps.project-version.outputs.version }}
114115
if ! [[ -z ${p2_qualifier} ]]; then
115116
version_segment=${{ steps.project-version.outputs.version }}.$p2_qualifier
116117
fi
@@ -377,9 +378,14 @@ jobs:
377378
rm -f ./$downloads_html
378379
379380
build_type=${{ inputs.build_type }}
380-
build_type=${build_type^}
381381
eclipse_profile=${{ inputs.eclipse_profile }}
382382
eclipse_version=${eclipse_profile:1:1}.${eclipse_profile:2}
383+
p2_qualifier=${{ inputs.p2-qualifier }}
384+
version_segment=${{ steps.project-version.outputs.version }}
385+
if ! [[ -z ${p2_qualifier} ]]; then
386+
version_segment=${{ steps.project-version.outputs.version }}.$p2_qualifier
387+
fi
388+
383389
384390
curl --location --request POST '${{ secrets.TOOLS_TEAM_GCHAT_WEBHOOK_URL }}' \
385391
--header 'Content-Type: application/json' \
@@ -388,7 +394,7 @@ jobs:
388394
{
389395
\"card\": {
390396
\"header\": {
391-
\"title\": \"STS ${{ needs.eclipse-distro-build.outputs.version }} ${build_type}\",
397+
\"title\": \"STS ${version_segment} ${build_type}\",
392398
\"subtitle\": \"Eclipse ${eclipse_version}\",
393399
\"imageUrl\": \"https://avatars.githubusercontent.com/u/317776?s=48&amp;v=4\",
394400
},

.github/workflows/publish-eclipse-release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ on:
1515
description: Release version (i.e. 4.20.1)
1616
required: true
1717
type: string
18+
qualifier:
19+
default: "RELEASE"
20+
description: "The version qualifier, i.e. `RELEASE` (default), RC1, M2"
21+
required: true
22+
type: string
1823
eclipse_latest:
1924
description: Latest eclipse release version (i.e. e4.30)
2025
required: true
@@ -34,21 +39,21 @@ jobs:
3439
aggregate-distro-update-site:
3540
uses: ./.github/workflows/aggregate-distro-update-sites.yml
3641
with:
37-
version: ${{ inputs.release_version }}.RELEASE
42+
version: ${{ inputs.release_version }}.${{ inputs.qualifier }}
3843
latest: ${{ inputs.eclipse_latest }}
3944
secrets: inherit
4045

4146
backup-release-on-gcp:
4247
uses: ./.github/workflows/backup-eclipse-releases-to-gcp.yml
4348
with:
4449
ls_version: ${{ inputs.ls_version }}
45-
release_version: ${{ inputs.release_version }}.RELEASE
50+
release_version: ${{ inputs.release_version }}.${{ inputs.qualifier }}
4651
secrets: inherit
4752

4853
create-github-release:
4954
uses: ./.github/workflows/create-gh-release.yml
5055
with:
51-
version: ${{ inputs.release_version }}.RELEASE
56+
version: ${{ inputs.release_version }}.${{ inputs.qualifier }}
5257
secrets: inherit
5358

5459
# announce-release:

.github/workflows/release-eclipse-distro-build.yml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,15 @@ concurrency:
77
on:
88
workflow_dispatch:
99
inputs:
10-
sts4-language-servers-version:
10+
sts-language-servers-version:
1111
description: Last segments of an s3 path for p2 Repo for eclipse ls extensions
1212
required: true
1313
type: string
14+
qualifier:
15+
default: "RELEASE"
16+
description: "The version qualifier, i.e. `RELEASE` (default), RC1, M2"
17+
required: true
18+
type: string
1419

1520
jobs:
1621

@@ -20,27 +25,27 @@ jobs:
2025
# eclipse_profile: 'e435'
2126
# build_type: 'release'
2227
# p2-qualifier: 'RELEASE'
23-
# sts4-language-servers-version: ${{ inputs.sts4-language-servers-version }}
28+
# sts-language-servers-version: ${{ inputs.sts-language-servers-version }}
2429
# java_version: '21'
2530
# secrets: inherit
2631

27-
e437-distro:
28-
uses: ./.github/workflows/gh-hosted-eclipse-distro-build.yml
29-
with:
30-
eclipse_profile: 'e437'
31-
build_type: 'release'
32-
p2-qualifier: 'RELEASE'
33-
sts4-language-servers-version: ${{ inputs.sts4-language-servers-version }}
34-
java_version: '21'
35-
secrets: inherit
32+
# e437-distro:
33+
# uses: ./.github/workflows/gh-hosted-eclipse-distro-build.yml
34+
# with:
35+
# eclipse_profile: 'e437'
36+
# build_type: 'release'
37+
# p2-qualifier: ${{ inputs.qualifier }}
38+
# sts-language-servers-version: ${{ inputs.sts-language-servers-version }}
39+
# java_version: '21'
40+
# secrets: inherit
3641

3742
e438-distro:
3843
uses: ./.github/workflows/gh-hosted-eclipse-distro-build.yml
3944
with:
4045
eclipse_profile: 'e438'
4146
build_type: 'release'
42-
p2-qualifier: 'RELEASE'
43-
sts4-language-servers-version: ${{ inputs.sts4-language-servers-version }}
47+
p2-qualifier: ${{ inputs.qualifier }}
48+
sts-language-servers-version: ${{ inputs.sts-language-servers-version }}
4449
java_version: '21'
4550
secrets: inherit
4651

.github/workflows/release-eclipse-ls-extensions.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ concurrency:
77
on:
88
workflow_dispatch:
99
inputs:
10-
sts4-language-servers-version:
10+
sts-language-servers-version:
1111
description: Last segments of an s3 path for p2 Repo for eclipse ls extensions
1212
required: true
1313
type: string
@@ -17,8 +17,8 @@ jobs:
1717
eclipse-ls-extension:
1818
uses: ./.github/workflows/eclipse-ls-extensions-build.yml
1919
with:
20-
eclipse_profile: 'e435'
20+
eclipse_profile: 'e437'
2121
build_type: 'release'
2222
skip_tests: true
23-
sts4-language-servers-version: ${{ inputs.sts4-language-servers-version }}
23+
sts-language-servers-version: ${{ inputs.sts-language-servers-version }}
2424
secrets: inherit

0 commit comments

Comments
 (0)