From 9539d3958bdd27118f25ee590bb3b2a1e585e529 Mon Sep 17 00:00:00 2001 From: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com> Date: Thu, 19 Mar 2026 09:41:57 -0400 Subject: [PATCH] Fix build Passing uploaded artifact id to runtime-test job, so no need to manually define the artifact name for artifact download task. --- .github/workflows/maven.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 7303e6a80..16bac538d 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -7,11 +7,13 @@ on: - master jobs: - Build: + build: strategy: matrix: jdkversion: [ 21 ] runs-on: ubuntu-latest + outputs: + artifact_id: ${{ steps.upload.outputs.artifact-id }} steps: - uses: actions/checkout@v6 - uses: actions/setup-java@v5 @@ -23,12 +25,13 @@ jobs: run: mvn -V -B clean package --file pom.xml - name: Upload Artifacts uses: actions/upload-artifact@v7 + id: upload with: path: target/AuthMe-*-FORK-Universal.jar archive: false runtime-test: name: Plugin Runtime Test - needs: [Build] + needs: [build] runs-on: ubuntu-latest strategy: matrix: @@ -48,4 +51,4 @@ jobs: with: server-version: ${{ matrix.mcVersion }} java-version: ${{ matrix.javaVersion }} - artifact-name: Download + artifact-ids: ${{needs.build.outputs.artifact_id}}