Skip to content

Commit

Permalink
Add New Workflow to do SDK Minor Release (grails#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetbehl authored Feb 1, 2024
1 parent 67db32e commit 5c9f252
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/sdkman.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5c9f252

Please sign in to comment.