Skip to content

Commit 391b486

Browse files
authored
Update gradle-publish.yml
1 parent aabcbc7 commit 391b486

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/gradle-publish.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,27 @@ jobs:
2828
distribution: 'temurin'
2929
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
3030
settings-path: ${{ github.workspace }} # location for the settings.xml file
31+
3132
- name: Setup Gradle
3233
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
34+
3335
- name: Build with Gradle
3436
run: ./gradlew build
37+
3538
# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
3639
# the publishing section of your build.gradle
3740
- name: Publish to GitHub Packages
3841
run: ./gradlew publish
3942
env:
4043
USERNAME: ${{ github.actor }}
4144
TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
46+
- name: Upload Release Asset
47+
uses: actions/upload-release-asset@v1
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
with:
51+
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.
52+
asset_path: ./build/libs/showscript.jar # TODO: Replace with the path to your .jar file
53+
asset_name: ShowScript.jar # TODO: Replace with the desired asset name
54+
asset_content_type: application/java-archive

0 commit comments

Comments
 (0)