|
| 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 | + |
0 commit comments