Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SDKMan Workflow #13304

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
sdkman:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
token: ${{ secrets.GH_TOKEN }}
ref: v${{ github.event.inputs.version }}
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '8'
- 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