-
Notifications
You must be signed in to change notification settings - Fork 11
36 lines (36 loc) · 1.02 KB
/
sdkman.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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