Skip to content

Update JDK version in GitHub workflow #26

Update JDK version in GitHub workflow

Update JDK version in GitHub workflow #26

Workflow file for this run

name : LabyAddon Build
on :
push :
branches : [ "master", "main" ]
pull_request :
branches : [ "master", "main" ]
workflow_dispatch :
env :
PUBLIC_RELEASE_BUILD : true
PUBLIC_RELEASE_BUILD_TOKEN : ${{ secrets.PUBLIC_RELEASE_BUILD_TOKEN }}
jobs :
build :
runs-on : ubuntu-latest
steps :
- uses : actions/checkout@v3
- name : Set up JDK 21
uses : actions/setup-java@v3
with :
distribution : 'corretto'
java-version : '21'
- name : Grant execute permission for gradlew
run : chmod +x gradlew
- name : Create addon jar
run : ./gradlew build --full-stacktrace
- name : Upload Artifact
uses : actions/upload-artifact@v3
with :
name : Artifacts
path : build/libs/*-release.jar