Skip to content

Commit

Permalink
ci: try to fix nightly build x3
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcmd committed Nov 13, 2024
1 parent 957415e commit 80ce978
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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"

Expand Down

0 comments on commit 80ce978

Please sign in to comment.