1.2.0 #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
- name: Cache Minecraft reports | |
uses: actions/[email protected] | |
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/[email protected] | |
with: | |
distribution: temurin | |
java-version: 21 | |
check-latest: true | |
cache: gradle | |
- name: Setup Gradle | |
uses: gradle/actions/[email protected] | |
- name: Build with Gradle | |
run: ./gradlew build | |
- name: Upload a Build Artifact | |
uses: actions/[email protected] | |
with: | |
name: LimboAPI | |
path: "build/libs/limboapi-*.jar" |