Skip to content

Commit 501a2fd

Browse files
committed
Update build script
1 parent 2bb5835 commit 501a2fd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/release-build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,14 @@ jobs:
2626
# Build the software
2727
- name: Build the classes
2828
run: ./gradlew classes -q
29-
- name: JAR the application
30-
run: ./gradlew jar -x classes
3129
# Publish the JAR file
3230
- name: Publish artifacts
3331
run: |
3432
echo "Github ref: ${GITHUB_REF}"
3533
NEW_VERSION=$(echo "${GITHUB_REF}" | cut -d "/" -f3)
3634
echo "New version: ${NEW_VERSION}"
3735
echo "Github username: ${GITHUB_ACTOR}"
36+
./gradlew jar -x classes -Pversion=${NEW_VERSION}
3837
./gradlew -Pversion=${NEW_VERSION} publish -x jar
3938
env:
4039
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)