From 4e17fa19f7309746392028df4dc85d0fd3212001 Mon Sep 17 00:00:00 2001 From: Dario Pranjic Date: Tue, 31 Dec 2024 09:47:58 +0100 Subject: [PATCH] fix gh release upload --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7fbda50..fa42bb4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -57,8 +57,8 @@ jobs: run: | curl -X POST \ -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ - -H "Content-Type: application/java-archive" \ - --data-binary @"$JAR_FILE" \ + -F "file=@$JAR_FILE" \ + -F "name=$(basename "$JAR_FILE")" \ "${{ github.event.release.upload_url }}?name=$(basename "$JAR_FILE")" - name: Upload to Modrinth uses: RubixDev/modrinth-upload@v1