-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (34 loc) · 1022 Bytes
/
release.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
37
38
39
40
41
42
name: Publish Release
on:
create:
tags:
- '\d+\.\d+\.\d+'
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v1
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 20
java-package: jre
cache: 'gradle'
- run: printf "org.gradle.java.home=%s" "$JAVA_HOME" > gradle.properties
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 21
check-latest: true
- run: printf "\norg.gradle.java.installations.paths=%s" "$JAVA_HOME" >> gradle.properties
- run: java --version
- name: Gradle Check
run: ./gradlew check -PtargetJava=21 --stacktrace
- name: Github Packages
run: ./gradlew -PtargetJava=21 :json-iterator:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}