Update dependency xyz.wagyourtail.unimined:xyz.wagyourtail.unimined.gradle.plugin to v1.3.12 #4329
Workflow file for this run
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 someone else's repo | |
if: "${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}" | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Set up Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
check-latest: true | |
- name: Execute Gradle Build | |
run: ./gradlew build test --stacktrace | |
- name: Prepare Upload | |
run: | | |
projectVersion=$(grep '^maven_version=' gradle.properties | cut -d'=' -f2) | |
mkdir client/build/upload | |
cp client/build/libs/SoulFireCLI-$projectVersion.jar client/build/upload | |
mkdir dedicated/build/upload | |
cp dedicated/build/libs/SoulFireDedicated-$projectVersion.jar dedicated/build/upload | |
- name: Upload Client Build Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: SoulFireCLI | |
if-no-files-found: error | |
path: | | |
client/build/upload/*.jar | |
- name: Upload Dedicated Build Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: SoulFireDedicated | |
if-no-files-found: error | |
path: | | |
dedicated/build/upload/*.jar |