-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix master snapshot build tag. (#1412)
* Build on test branch, build snapshot on push. * Remove build on test branch.
- Loading branch information
Showing
1 changed file
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|