Release #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: Semantic Version string to use for this release | |
required: true | |
branch: | |
description: Source branch from which the version should be created. 'main' should never be used, to create a release branch please trigger the "prepare" workflow before. | |
required: true | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
Run-All-Tests: | |
name: "Run tests" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
repository: [ "runtime-metamodel", "gradleplugins", "connector", "identityhub", "federatedcatalog" ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Run test for ${{ matrix.test-def.repo }}" | |
run: | | |
chmod +x ./scripts/github_action.sh | |
./scripts/github_action.sh "eclipse-edc" "${{ matrix.repository }}" "verify.yaml" "" "${{ secrets.ORG_GITHUB_BOT_USER }}" "${{ secrets.ORG_GITHUB_BOT_TOKEN }}" "${{ inputs.branch }}" | |
Publish-Components: | |
needs: [ Run-All-Tests ] | |
uses: ./.github/workflows/publish-all-in-one.yaml | |
with: | |
version: ${{ inputs.version }} | |
branch: ${{ inputs.branch }} | |
secrets: inherit | |
Release-Components: | |
name: "Release Components" | |
runs-on: ubuntu-latest | |
needs: [ Publish-Components ] | |
strategy: | |
fail-fast: false | |
matrix: | |
repository: [ "runtime-metamodel", "gradleplugins", "connector", "identityhub", "federatedcatalog" ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Log version" | |
run: | | |
echo "Will release version ${{ inputs.version }}" | |
- name: "Release ${{ matrix.test-def.repo }}" | |
run: | | |
chmod +x ./scripts/github_action.sh | |
./scripts/github_action.sh "eclipse-edc" "${{ matrix.repository }}" "release.yml" "" "${{ secrets.ORG_GITHUB_BOT_USER }}" "${{ secrets.ORG_GITHUB_BOT_TOKEN }}" "${{ inputs.branch }}" | |
Post-To-Discord: | |
needs: [ Publish-Components, Release-Components ] | |
if: always() | |
runs-on: ubuntu-latest | |
steps: | |
- uses: sarisia/actions-status-discord@v1 | |
name: "Invoke discord webhook" | |
with: | |
webhook: ${{ secrets.DISCORD_GITHUB_CI_WEBHOOK }} | |
# if the publishing is skipped, that means the preceding test run failed | |
status: ${{ needs.Publish-Components.result == 'skipped' && 'Failure' || needs.Publish-Components.result }} | |
title: "Release Core" | |
description: "Build and publish ${{ inputs.version }}" | |
username: GitHub Actions |