We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bb5835 commit 501a2fdCopy full SHA for 501a2fd
.github/workflows/release-build.yml
@@ -26,15 +26,14 @@ jobs:
26
# Build the software
27
- name: Build the classes
28
run: ./gradlew classes -q
29
- - name: JAR the application
30
- run: ./gradlew jar -x classes
31
# Publish the JAR file
32
- name: Publish artifacts
33
run: |
34
echo "Github ref: ${GITHUB_REF}"
35
NEW_VERSION=$(echo "${GITHUB_REF}" | cut -d "/" -f3)
36
echo "New version: ${NEW_VERSION}"
37
echo "Github username: ${GITHUB_ACTOR}"
+ ./gradlew jar -x classes -Pversion=${NEW_VERSION}
38
./gradlew -Pversion=${NEW_VERSION} publish -x jar
39
env:
40
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments