Skip to content

Commit

Permalink
Test build on pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
Syer10 committed Sep 2, 2024
1 parent a5d7f27 commit 35e62b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Java CI with Gradle
on:
push:
branches: [ "master" ]
pull_request:

jobs:
build:
Expand All @@ -25,11 +26,13 @@ jobs:
arguments: shadowJar

- name: Get Commit Count
if: ${{ github.event_name == 'push' }}
id: commit_count
run: echo "count=$(git rev-list --count HEAD)" >> $GITHUB_OUTPUT

- name: Upload Release
uses: softprops/action-gh-release@v2
if: ${{ github.event_name == 'push' }}
with:
tag_name: ${{ steps.commit_count.outputs.count }}
files: build/*.jar

0 comments on commit 35e62b1

Please sign in to comment.