From 391b486037d65bce1d1fed04c0daa9942fbbf3cf Mon Sep 17 00:00:00 2001 From: Ryan Hecht Date: Tue, 14 May 2024 17:23:25 -0400 Subject: [PATCH] Update gradle-publish.yml --- .github/workflows/gradle-publish.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/gradle-publish.yml b/.github/workflows/gradle-publish.yml index 2331976..d951792 100644 --- a/.github/workflows/gradle-publish.yml +++ b/.github/workflows/gradle-publish.yml @@ -28,10 +28,13 @@ jobs: distribution: 'temurin' server-id: github # Value of the distributionManagement/repository/id field of the pom.xml settings-path: ${{ github.workspace }} # location for the settings.xml file + - name: Setup Gradle uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0 + - name: Build with Gradle run: ./gradlew build + # The USERNAME and TOKEN need to correspond to the credentials environment variables used in # the publishing section of your build.gradle - name: Publish to GitHub Packages @@ -39,3 +42,13 @@ jobs: env: USERNAME: ${{ github.actor }} TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Upload Release Asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to tag this upload as a Release Asset. + asset_path: ./build/libs/showscript.jar # TODO: Replace with the path to your .jar file + asset_name: ShowScript.jar # TODO: Replace with the desired asset name + asset_content_type: application/java-archive