Skip to content

Commit

Permalink
Revert "ci: use origin jar name for nightly build"
Browse files Browse the repository at this point in the history
This reverts commit 281741c.
  • Loading branch information
smartcmd committed Dec 20, 2024
1 parent 6fbad8b commit 78266bc
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,15 @@ jobs:
- name: Find Shaded Jar
id: vars
run: |
SHADED_JAR_PATH=$(find server/build/libs -name "allay-server-*-shaded.jar" -print -quit)
SHADED_JAR_NAME=$(basename "$SHADED_JAR_PATH")
echo "shaded_jar_path=$SHADED_JAR_PATH" >> $GITHUB_OUTPUT
echo "shaded_jar_name=$SHADED_JAR_NAME" >> $GITHUB_OUTPUT
SHADED_JAR=$(find server/build/libs -name "allay-server-*-shaded.jar" -print -quit)
echo "shaded_jar=$SHADED_JAR" >> $GITHUB_OUTPUT
- name: Upload Artifact
uses: actions/upload-artifact@v4
if: success()
with:
name: allay-server
path: ${{ steps.vars.outputs.shaded_jar_path }}
path: ${{ steps.vars.outputs.shaded_jar }}

- name: Publish to JitPack
if: success() && github.event_name == 'push' && github.repository == 'AllayMC/Allay' && contains(github.ref_name, 'master')
Expand All @@ -98,8 +96,8 @@ jobs:
with:
upload_url: https://uploads.github.com/repos/AllayMC/Allay/releases/185111149/assets{?name,label}
release_id: 185111149
asset_path: ./${{ steps.vars.outputs.shaded_jar_path }}
asset_name: ${{ steps.vars.outputs.shaded_jar_name }}
asset_path: ./${{ steps.vars.outputs.shaded_jar }}
asset_name: allay-nightly-build-$$.jar
asset_content_type: application/zip
max_releases: 1

Expand Down

0 comments on commit 78266bc

Please sign in to comment.