Skip to content

Commit

Permalink
Fix master snapshot build tag. (#1412)
Browse files Browse the repository at this point in the history
* Build on test branch, build snapshot on push.

* Remove build on test branch.
  • Loading branch information
ThatRedox authored Aug 5, 2022
1 parent 3126617 commit 54583e9
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,17 @@ jobs:
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
if [[ "${GITHUB_EVENT_NAME}" != "pull_request" ]]; then
./gradlew buildReleaseJar
else
./gradlew buildReleaseJar -PprereleaseTag="PR.${PR_NUMBER}"
fi
case "${GITHUB_EVENT_NAME}" in
"pull_request")
./gradlew buildReleaseJar -PprereleaseTag="PR.${PR_NUMBER}"
;;
"push")
./gradlew buildReleaseJar -PprereleaseTag="SNAPSHOT"
;;
*)
./gradlew buildReleaseJar
;;
esac
- name: Upload build
uses: actions/[email protected]
with:
Expand Down

0 comments on commit 54583e9

Please sign in to comment.