Skip to content

Commit d330d73

Browse files
committed
GHA: publish release workflow
1 parent d8a2753 commit d330d73

File tree

3 files changed

+104
-17
lines changed

3 files changed

+104
-17
lines changed

.github/workflows/create-gh-release.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,19 @@ jobs:
5050
- name: Verify Changelog
5151
run: |
5252
cat ${{ github.workspace }}/gen-changelog.md
53-
# - name: Push Tag
54-
# run: |
55-
# git config --global user.name "@spring-projects/spring-ide-admin"
56-
# git tag -a ${{ inputs.version }} -m "${{ inputs.version }}"
57-
# git push --tags
58-
# - name: Create Release
59-
# uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e
60-
# env:
61-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62-
# with:
63-
# id: ${{ inputs.version }}
64-
# tag_name: ${{ inputs.version }}
65-
# release_name: Release ${{ inputs.version }}
66-
# body_path: ${{ github.workspace }}/gen-changelog.md
67-
# draft: true
68-
# prerelease: false
53+
- name: Push Tag
54+
run: |
55+
git config --global user.name "@spring-projects/spring-ide-admin"
56+
git tag -a ${{ inputs.version }} -m "${{ inputs.version }}"
57+
git push --tags
58+
- name: Create Release
59+
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e
60+
env:
61+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62+
with:
63+
id: ${{ inputs.version }}
64+
tag_name: ${{ inputs.version }}
65+
release_name: Release ${{ inputs.version }}
66+
body_path: ${{ github.workspace }}/gen-changelog.md
67+
draft: true
68+
prerelease: false
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: Publish Release - Eclipse
2+
3+
concurrency:
4+
group: release-eclipse
5+
cancel-in-progress: true
6+
7+
on:
8+
workflow_dispatch:
9+
inputs:
10+
ls_version:
11+
description: The suffix of the p2 repo URL in S3 (i.e. 2023-11-01)
12+
required: true
13+
type: string
14+
release_version:
15+
description: Version suffix in S3 (i.e. 4.20.1)
16+
required: true
17+
type: string
18+
eclipse_latest:
19+
description: Latest eclipse release version (i.e. e4.30)
20+
required: true
21+
type: string
22+
23+
jobs:
24+
25+
aggregate-ls-extension-update-site:
26+
uses: ./.github/workflows/aggregate-ls-extensions-update-site.yml
27+
with:
28+
version: ${{ inputs.ls_version }}
29+
secrets: inherit
30+
31+
aggregate-distro-update-site:
32+
uses: ./.github/workflows/aggregate-ls-extensions-update-site.yml
33+
with:
34+
version: ${{ inputs.release_version }}.RELEASE
35+
latest: ${{ inputs.eclipse_latest }}
36+
secrets: inherit
37+
38+
create-github-release:
39+
uses: ./.github/workflows/create-gh-release.yml
40+
with:
41+
version: ${{ inputs.release_version }}.RELEASE
42+
secrets: inherit
43+
44+
notify:
45+
needs: [ aggregate-ls-extension-update-site, aggregate-distro-update-site, create-github-release ]
46+
runs-on: ubuntu-latest
47+
steps:
48+
- id: tools-team-slack
49+
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117
50+
env:
51+
SLACK_BOT_TOKEN: ${{ secrets.VMWARE_SLACK_BOT_TOKEN }}
52+
with:
53+
channel-id: "C0188MENU2J"
54+
payload: |
55+
{
56+
"text": "Released `${{ inputs.release_version }}`",
57+
"blocks": [
58+
{
59+
"type": "section",
60+
"text": {
61+
"type": "mrkdwn",
62+
"text": "Published `${{ inputs.release_version }}` successfully"
63+
}
64+
}
65+
]
66+
}
67+
- name: Announce Release on Slack
68+
id: spring-tools-announcing
69+
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117
70+
with:
71+
payload: |
72+
{
73+
"text": "spring-tools-announcing `${{ inputs.release_version }}` is available now",
74+
"blocks": [
75+
{
76+
"type": "section",
77+
"text": {
78+
"type": "mrkdwn",
79+
"text": "spring-tools-announcing `${{ inputs.release_version }}` is available now"
80+
}
81+
}
82+
]
83+
}
84+
env:
85+
SLACK_WEBHOOK_URL: ${{ secrets.SPRING_RELEASE_SLACK_WEBHOOK_URL }}
86+
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
87+

.github/workflows/test-slack-message.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- id: slack
12-
uses: slackapi/slack-github-action@v1.19.0
12+
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117
1313
env:
1414
SLACK_BOT_TOKEN: ${{ secrets.VMWARE_SLACK_BOT_TOKEN }}
1515
with:

0 commit comments

Comments
 (0)