GHA: publish release workflow
This commit is contained in:
32
.github/workflows/create-gh-release.yml
vendored
32
.github/workflows/create-gh-release.yml
vendored
@@ -50,19 +50,19 @@ jobs:
|
||||
- name: Verify Changelog
|
||||
run: |
|
||||
cat ${{ github.workspace }}/gen-changelog.md
|
||||
# - name: Push Tag
|
||||
# run: |
|
||||
# git config --global user.name "@spring-projects/spring-ide-admin"
|
||||
# git tag -a ${{ inputs.version }} -m "${{ inputs.version }}"
|
||||
# git push --tags
|
||||
# - name: Create Release
|
||||
# uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# with:
|
||||
# id: ${{ inputs.version }}
|
||||
# tag_name: ${{ inputs.version }}
|
||||
# release_name: Release ${{ inputs.version }}
|
||||
# body_path: ${{ github.workspace }}/gen-changelog.md
|
||||
# draft: true
|
||||
# prerelease: false
|
||||
- name: Push Tag
|
||||
run: |
|
||||
git config --global user.name "@spring-projects/spring-ide-admin"
|
||||
git tag -a ${{ inputs.version }} -m "${{ inputs.version }}"
|
||||
git push --tags
|
||||
- name: Create Release
|
||||
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
id: ${{ inputs.version }}
|
||||
tag_name: ${{ inputs.version }}
|
||||
release_name: Release ${{ inputs.version }}
|
||||
body_path: ${{ github.workspace }}/gen-changelog.md
|
||||
draft: true
|
||||
prerelease: false
|
||||
87
.github/workflows/publish-eclipse-release.yml
vendored
Normal file
87
.github/workflows/publish-eclipse-release.yml
vendored
Normal file
@@ -0,0 +1,87 @@
|
||||
name: Publish Release - Eclipse
|
||||
|
||||
concurrency:
|
||||
group: release-eclipse
|
||||
cancel-in-progress: true
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
ls_version:
|
||||
description: The suffix of the p2 repo URL in S3 (i.e. 2023-11-01)
|
||||
required: true
|
||||
type: string
|
||||
release_version:
|
||||
description: Version suffix in S3 (i.e. 4.20.1)
|
||||
required: true
|
||||
type: string
|
||||
eclipse_latest:
|
||||
description: Latest eclipse release version (i.e. e4.30)
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
|
||||
aggregate-ls-extension-update-site:
|
||||
uses: ./.github/workflows/aggregate-ls-extensions-update-site.yml
|
||||
with:
|
||||
version: ${{ inputs.ls_version }}
|
||||
secrets: inherit
|
||||
|
||||
aggregate-distro-update-site:
|
||||
uses: ./.github/workflows/aggregate-ls-extensions-update-site.yml
|
||||
with:
|
||||
version: ${{ inputs.release_version }}.RELEASE
|
||||
latest: ${{ inputs.eclipse_latest }}
|
||||
secrets: inherit
|
||||
|
||||
create-github-release:
|
||||
uses: ./.github/workflows/create-gh-release.yml
|
||||
with:
|
||||
version: ${{ inputs.release_version }}.RELEASE
|
||||
secrets: inherit
|
||||
|
||||
notify:
|
||||
needs: [ aggregate-ls-extension-update-site, aggregate-distro-update-site, create-github-release ]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- id: tools-team-slack
|
||||
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117
|
||||
env:
|
||||
SLACK_BOT_TOKEN: ${{ secrets.VMWARE_SLACK_BOT_TOKEN }}
|
||||
with:
|
||||
channel-id: "C0188MENU2J"
|
||||
payload: |
|
||||
{
|
||||
"text": "Released `${{ inputs.release_version }}`",
|
||||
"blocks": [
|
||||
{
|
||||
"type": "section",
|
||||
"text": {
|
||||
"type": "mrkdwn",
|
||||
"text": "Published `${{ inputs.release_version }}` successfully"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
- name: Announce Release on Slack
|
||||
id: spring-tools-announcing
|
||||
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117
|
||||
with:
|
||||
payload: |
|
||||
{
|
||||
"text": "spring-tools-announcing `${{ inputs.release_version }}` is available now",
|
||||
"blocks": [
|
||||
{
|
||||
"type": "section",
|
||||
"text": {
|
||||
"type": "mrkdwn",
|
||||
"text": "spring-tools-announcing `${{ inputs.release_version }}` is available now"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SPRING_RELEASE_SLACK_WEBHOOK_URL }}
|
||||
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
|
||||
|
||||
2
.github/workflows/test-slack-message.yml
vendored
2
.github/workflows/test-slack-message.yml
vendored
@@ -9,7 +9,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- id: slack
|
||||
uses: slackapi/slack-github-action@v1.19.0
|
||||
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117
|
||||
env:
|
||||
SLACK_BOT_TOKEN: ${{ secrets.VMWARE_SLACK_BOT_TOKEN }}
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user