From 7b648d0a33a975121362f11f60b14ef56eb523f4 Mon Sep 17 00:00:00 2001 From: matsu1213 <85377530+matsu1213@users.noreply.github.com> Date: Wed, 19 Jun 2024 19:25:32 +0900 Subject: [PATCH] Update maven-publish.yml --- .github/workflows/maven-publish.yml | 44 ++++++++++++++--------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 53a8596..b952f5b 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -24,28 +24,28 @@ jobs: settings-path: ${{ github.workspace }} # location for the settings.xml file - name: Check 1.15.2 NMS existence - id: check_nms - uses: andstor/file-existence-action@v1 - with: - files: "/home/runner/.m2/repository/org/spigotmc/spigot/1.15.2-R0.1-SNAPSHOT/spigot-1.15.2-R0.1-SNAPSHOT.pom" - - name: Download BuildTools - if: steps.check_nms.outputs.files_exists == 'false' - run: mkdir -p ./build/ && curl -L -o ./build/BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar - - name: Run BuildTools - if: steps.check_nms.outputs.files_exists == 'false' - run: cd build && java -jar BuildTools.jar --rev 1.12.2 - - - name: Check CrackShot existence - id: check_crackshot - uses: andstor/file-existence-action@v1 - with: - files: "/home/runner/.m2/repository/com/shampaggon/CrackShot/0.98.11/CrackShot-0.98.11.pom" - - name: Download CrackShot v0.98.11 - if: steps.check_crackshot.outputs.files_exists == 'false' - run: curl -L -o CrackShot.jar https://dev.bukkit.org/projects/crackshot/files/3151915/download - - name: Install CrackShot into local mvn repo - if: steps.check_crackshot.outputs.files_exists == 'false' - run: mvn install:install-file -Dfile=./CrackShot.jar -DgroupId=com.shampaggon -DartifactId=CrackShot -Dversion=0.98.11 -Dpackaging=jar -DgeneratePom=true + id: check_nms + uses: andstor/file-existence-action@v1 + with: + files: "/home/runner/.m2/repository/org/spigotmc/spigot/1.15.2-R0.1-SNAPSHOT/spigot-1.15.2-R0.1-SNAPSHOT.pom" + - name: Download BuildTools + if: steps.check_nms.outputs.files_exists == 'false' + run: mkdir -p ./build/ && curl -L -o ./build/BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar + - name: Run BuildTools + if: steps.check_nms.outputs.files_exists == 'false' + run: cd build && java -jar BuildTools.jar --rev 1.12.2 + + - name: Check CrackShot existence + id: check_crackshot + uses: andstor/file-existence-action@v1 + with: + files: "/home/runner/.m2/repository/com/shampaggon/CrackShot/0.98.11/CrackShot-0.98.11.pom" + - name: Download CrackShot v0.98.11 + if: steps.check_crackshot.outputs.files_exists == 'false' + run: curl -L -o CrackShot.jar https://dev.bukkit.org/projects/crackshot/files/3151915/download + - name: Install CrackShot into local mvn repo + if: steps.check_crackshot.outputs.files_exists == 'false' + run: mvn install:install-file -Dfile=./CrackShot.jar -DgroupId=com.shampaggon -DartifactId=CrackShot -Dversion=0.98.11 -Dpackaging=jar -DgeneratePom=true - name: Build with Maven run: mvn -B package --file pom.xml