From 864a9133d27bc766787941140f2349c2c18a9a66 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Sat, 28 Dec 2024 17:06:46 +0100 Subject: [PATCH] Try that --- .forgejo/workflows/build.yml | 21 +++++++++++++-------- pom.xml | 1 + 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 60e9059..a9d8ed0 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -4,24 +4,29 @@ jobs: runs-on: docker container: debian:sid steps: - - name: Prepare for installation - run: apt update - name: Install JDK and other deps - run: apt install --no-install-recommends -y openjdk-21-jdk-headless maven git nodejs curl zstd + run: apt update && apt install --no-install-recommends -y openjdk-21-jdk-headless maven git nodejs curl zstd - name: Clone repository run: git clone -b ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} https://git.m724.eu/Minecon724/tweaks724.git . - #- name: BuildTools for NMS - # run: mkdir /tmp/buildtools && cd /tmp/buildtools && curl -O https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar && java -jar BuildTools.jar --rev 1.21.1 --remapped && cd - - name: Download NMS run: ./tools/download_nms.sh ~ + + - name: Build for 1.21.1 - run: mvn clean package + run: mkdir artifact && mvn clean package && mv target/*.jar artifact/ + + - name: Build for 1.21.3 + run: mvn clean package -Dproject.spigot.version=1.21.3-R0.1-SNAPSHOT && mv target/*.jar artifact/ + + - name: Build for 1.21.4 + run: mvn clean package -Dproject.spigot.version=1.21.4-R0.1-SNAPSHOT && mv target/*.jar artifact/ + + - name: Upload artifacts uses: https://github.com/actions/upload-artifact@v3 with: - path: target \ No newline at end of file + path: artifact \ No newline at end of file diff --git a/pom.xml b/pom.xml index 2758b38..a1b497e 100644 --- a/pom.xml +++ b/pom.xml @@ -20,6 +20,7 @@ + ${artifactId}-${version}+${project.spigot.version} src/main/resources