Skip to content

Commit 8d251cc

Browse files
authored
Add SDKMan Workflow (#13304)
Manually trigger release to SDKMan
1 parent 0430484 commit 8d251cc

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/sdkman.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release to SDKMan
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
version:
6+
description: 'Version to release'
7+
required: true
8+
jobs:
9+
sdkman:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v3
16+
with:
17+
token: ${{ secrets.GH_TOKEN }}
18+
ref: v${{ github.event.inputs.version }}
19+
- name: Set up JDK
20+
uses: actions/setup-java@v3
21+
with:
22+
distribution: 'adopt'
23+
java-version: '8'
24+
- name: Grails SDK Minor Release
25+
uses: gradle/gradle-build-action@v2
26+
with:
27+
arguments: sdkMinorRelease
28+
env:
29+
GVM_SDKVENDOR_KEY: ${{ secrets.GVM_SDKVENDOR_KEY }}
30+
GVM_SDKVENDOR_TOKEN: ${{ secrets.GVM_SDKVENDOR_TOKEN }}
31+
- name: Set output
32+
id: set_output
33+
run: |
34+
echo ::set-output name=release_version::$(cat $GITHUB_OUTPUT)
35+
env:
36+
GITHUB_OUTPUT: ${{ github.workspace }}/build/release_version

0 commit comments

Comments
 (0)