Skip to content

Commit

Permalink
Update gradle.yml, fix #858
Browse files Browse the repository at this point in the history
  • Loading branch information
xia-mc authored Dec 6, 2024
1 parent 31e731e commit 1704c90
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,15 @@ jobs:
-F "file=@$JAR_PATH" \
-F "payload_json={\"content\":\"$GIT_COMMIT_AUTHOR pushed $GIT_COMMIT_COMMENT_COUNT changes to the repository $GITHUB_REPOSITORY on branch $GITHUB_REF. Commit URL: $GIT_COMMIT_URL\"}" \
$DISCORD_WEBHOOK_URL
- name: Find Correct JAR
id: findjar
run: |
output="$(find build/libs/ ! -name "*-sources.jar" -type f -printf "%f\n")"
echo "::set-output name=jarname::$output"
- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ steps.findjar.outputs.jarname }}
path: build/libs/${{ steps.findjar.outputs.jarname }}

0 comments on commit 1704c90

Please sign in to comment.