Skip to content

Commit

Permalink
Update build-jar.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AkmalFairuz authored Dec 1, 2024
1 parent cef86b5 commit b6c294a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build-jar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ name: Java CI with Gradle
on:
push:
branches: [ "master" ]
tags: [ "*" ]
pull_request:
branches: [ "master" ]

Expand Down Expand Up @@ -42,3 +43,11 @@ jobs:
with:
name: PowerSkywars
path: ${{ steps.strings.outputs.build-output-dir }}build/PowerSkywars*.jar

- name: Release JAR
if: startsWith(github.ref, 'refs/tags/') && success()
uses: ncipollo/[email protected]
with:
artifacts: build/PowerSkywars*.jar
allowUpdates: true
body: "Built by: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"

0 comments on commit b6c294a

Please sign in to comment.