Skip to content

1.2.0

1.2.0 #10

Workflow file for this run

name: Java CI with Gradle
on: [ push, pull_request ]
jobs:
build:
# Only run on PRs if the source branch is on a different repo. We do not need to run everything twice. (From ViaVersion)
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4.2.2
- name: Cache Minecraft reports
uses: actions/cache@v4.1.2
with:
path: plugin/build/minecraft/*/ # Cache only the directories
key: minecraft-${{ hashFiles('gradle.properties') }} # Cache key based on gradle.properties because of gameVersions property
- name: Setup Java
uses: actions/setup-java@v4.5.0
with:
distribution: temurin
java-version: 21
check-latest: true
cache: gradle
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3.3.2
- name: Build with Gradle
run: ./gradlew build
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4.4.3
with:
name: LimboAPI
path: "build/libs/limboapi-*.jar"