From 80ce97898011c044843d9e61b127c5a343cfff21 Mon Sep 17 00:00:00 2001 From: daoge_cmd <3523206925@qq.com> Date: Wed, 13 Nov 2024 17:16:31 +0800 Subject: [PATCH] ci: try to fix nightly build x3 --- .github/workflows/gradle.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index ec2c103e9..353be6c6a 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -64,16 +64,17 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} - name: Find Shaded Jar + id: vars run: | SHADED_JAR=$(find server/build/libs -name "allay-server-*-shaded.jar" -print -quit) - echo "SHADED_JAR=SHADED_JAR" >> $GITHUB_ENV + echo "SHADED_JAR=$SHADED_JAR" >> $GITHUB_OUTPUT - name: Upload Artifact uses: actions/upload-artifact@v4 if: success() with: name: allay-server - path: server/build/libs/${{ env.SHADED_JAR }} + path: server/build/libs/${{ steps.vars.outputs.SHADED_JAR }} - name: Publish to JitPack uses: fjogeleit/http-request-action@v1 @@ -95,7 +96,7 @@ jobs: with: upload_url: https://uploads.github.com/repos/AllayMC/Allay/releases/185111149/assets{?name,label} release_id: 185111149 - asset_path: ./server/build/libs/${{ env.SHADED_JAR }} + asset_path: ./server/build/libs/${{ steps.vars.outputs.SHADED_JAR }} asset_name: allay-nightly-$$.zip asset_content_type: application/zip max_releases: 1 @@ -113,7 +114,7 @@ jobs: port: ${{ secrets.TEST_SERVER_PORT }} key: ${{ secrets.TEST_SERVER_SSH_KEY }} passphrase: ${{ secrets.TEST_SERVER_SSH_KEY_PASSPHRASE }} - source: "server/build/libs/allay-server-*-shaded.jar" + source: server/build/libs/${{ steps.vars.outputs.SHADED_JAR }} strip_components: 3 target: "/root/allaymc/tmp"