From 5c9f2523a383075efdee36ab6a57ce29eade8344 Mon Sep 17 00:00:00 2001 From: Puneet Behl Date: Thu, 1 Feb 2024 18:25:55 +0530 Subject: [PATCH] Add New Workflow to do SDK Minor Release (#279) --- .github/workflows/sdkman.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/sdkman.yml diff --git a/.github/workflows/sdkman.yml b/.github/workflows/sdkman.yml new file mode 100644 index 00000000..7bd9985e --- /dev/null +++ b/.github/workflows/sdkman.yml @@ -0,0 +1,36 @@ +name: Release to SDKMan +on: + workflow_dispatch: + inputs: + version: + description: 'Version to release' + required: true +jobs: + sdkmanMinorRelease: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + token: ${{ secrets.GH_TOKEN }} + ref: v${{ github.event.inputs.version }} + - name: Set up JDK + uses: actions/setup-java@v4 + with: + distribution: 'adopt' + java-version: '11' + - name: Grails SDK Minor Release + uses: gradle/gradle-build-action@v2 + with: + arguments: sdkMinorRelease + env: + GVM_SDKVENDOR_KEY: ${{ secrets.GVM_SDKVENDOR_KEY }} + GVM_SDKVENDOR_TOKEN: ${{ secrets.GVM_SDKVENDOR_TOKEN }} + - name: Set output + id: set_output + run: | + echo ::set-output name=release_version::$(cat $GITHUB_OUTPUT) + env: + GITHUB_OUTPUT: ${{ github.workspace }}/build/release_version