-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add build info to built JAR files (#2588)
- Loading branch information
Showing
5 changed files
with
31 additions
and
103 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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -12,6 +12,8 @@ concurrency: | |
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
VERSION_SUFFIX: "PR-${{ github.event.number }}" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Check Path Filter | ||
|
@@ -31,10 +33,20 @@ jobs: | |
- name: Build | ||
if: steps.filter.outputs.code == 'true' | ||
run: ./gradlew assemble --build-cache | ||
- name: Upload Artifact | ||
- name: Rename Jars | ||
if: steps.filter.outputs.code == 'true' | ||
run: for file in build/libs/*; do mv "$file" "${file/.jar/-${{ env.VERSION_SUFFIX }}.jar}"; done; | ||
- name: Upload All Artifacts | ||
if: steps.filter.outputs.code == 'true' | ||
uses: actions/[email protected] | ||
with: | ||
name: build output | ||
name: Full Package | ||
path: build/libs/* | ||
retention-days: 15 | ||
- name: Upload Main Jar | ||
if: steps.filter.outputs.code == 'true' | ||
uses: actions/[email protected] | ||
with: | ||
name: Main Jar | ||
path: build/libs/*[0-9]-PR-*.jar | ||
retention-days: 15 |
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
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