From 1ee29d2689813a369d01f5fec041375df67d66a4 Mon Sep 17 00:00:00 2001 From: Eamonn Mansour <47121388+eamansour@users.noreply.github.com> Date: Thu, 11 Jun 2026 10:53:17 +0100 Subject: [PATCH 1/3] automation: Add workflow to create isolated release Signed-off-by: Eamonn Mansour <47121388+eamansour@users.noreply.github.com> --- .github/workflows/release.yaml | 83 ++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..5c516a5 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,83 @@ +# +# Copyright contributors to the Galasa project +# +# SPDX-License-Identifier: EPL-2.0 +# +name: Release Galasa Isolated and MVP + +on: + workflow_dispatch: + inputs: + releaseBranch: + description: 'The branch to use for the isolated release' + required: false + default: 'release' + +env: + NAMESPACE: ${{ github.repository_owner }} + +jobs: + get-galasa-version: + name: Get Galasa Version + runs-on: ubuntu-latest + + if: ${{ github.repository_owner == 'galasa-dev' }} + + steps: + - name: Checkout 'galasa' repository + uses: actions/checkout@v4 + with: + repository: ${{ env.NAMESPACE }}/galasa + path: ${{ github.workspace }}/galasa + sparse-checkout: | + build.properties + + - name: Get Galasa Version from build.properties file + id: get-galasa-version + run: | + cat ${{ github.workspace }}/galasa/build.properties | grep "=" >> $GITHUB_OUTPUT + + outputs: + galasa-version: ${{ steps.get-galasa-version.outputs.GALASA_VERSION }} + + create-release: + name: Create GitHub Release + runs-on: ubuntu-latest + + needs: [get-galasa-version] + + permissions: + contents: write + + env: + GALASA_VERSION: ${{ needs.get-galasa-version.outputs.galasa-version }} + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Make temp directory + run: | + mkdir ${{ github.workspace }}/temp + + - name: Download Galasa MVP zip + working-directory: ${{ github.workspace }}/temp + run: | + wget https://development.galasa.dev/${{ inputs.releaseBranch }}/maven-repo/mvp/dev/galasa/galasa-isolated-mvp/${{ env.GALASA_VERSION }}/galasa-isolated-mvp-${{ env.GALASA_VERSION }}.zip + + - name: Download Galasa Isolated zip + working-directory: ${{ github.workspace }}/temp + run: | + wget https://development.galasa.dev/${{ inputs.releaseBranch }}/maven-repo/isolated/dev/galasa/galasa-isolated/${{ env.GALASA_VERSION }}/galasa-isolated-${{ env.GALASA_VERSION }}.zip + + - name: Create GitHub Release + working-directory: ${{ github.workspace }}/temp + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release create v${{ env.GALASA_VERSION }} \ + --repo ${{ github.repository }} \ + --title "v${{ env.GALASA_VERSION }}" \ + --generate-notes \ + galasa-isolated-mvp-${{ env.GALASA_VERSION }}.zip \ + galasa-isolated-${{ env.GALASA_VERSION }}.zip From 3de2ec644ba9fd8194c4986c3e4b515f675e0ed4 Mon Sep 17 00:00:00 2001 From: Eamonn Mansour <47121388+eamansour@users.noreply.github.com> Date: Thu, 11 Jun 2026 11:38:50 +0100 Subject: [PATCH 2/3] chore: Remove if statement Signed-off-by: Eamonn Mansour <47121388+eamansour@users.noreply.github.com> --- .github/workflows/release.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5c516a5..0614ab4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -21,8 +21,6 @@ jobs: name: Get Galasa Version runs-on: ubuntu-latest - if: ${{ github.repository_owner == 'galasa-dev' }} - steps: - name: Checkout 'galasa' repository uses: actions/checkout@v4 From 6d160620e4630a2e0732ffb9ecc50b6d82675e39 Mon Sep 17 00:00:00 2001 From: Eamonn Mansour <47121388+eamansour@users.noreply.github.com> Date: Thu, 11 Jun 2026 11:51:03 +0100 Subject: [PATCH 3/3] automation: Add workflow_call event Signed-off-by: Eamonn Mansour <47121388+eamansour@users.noreply.github.com> --- .github/workflows/release.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0614ab4..f692179 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -12,6 +12,13 @@ on: description: 'The branch to use for the isolated release' required: false default: 'release' + workflow_call: + inputs: + releaseBranch: + description: 'The branch to use for the CLI release' + required: false + default: 'release' + type: string env: NAMESPACE: ${{ github.repository_owner }}