We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6b23d2a + 4bc78e4 commit 50e16f9Copy full SHA for 50e16f9
.github/workflows/publish.yml
@@ -30,9 +30,16 @@ jobs:
30
gpg-passphrase: SIGNING_PASSWORD
31
32
- name: Set version (if provided)
33
- if: github.event.inputs.version != ''
34
run: |
35
- mvn versions:set -DnewVersion=${{ github.event.inputs.version }} -DgenerateBackupPoms=false
+ if [ "${{ github.event_name }}" = "release" ]; then
+ VERSION="${{ github.event.release.tag_name }}"
36
+ elif [ -n "${{ github.event.inputs.version }}" ]; then
37
+ VERSION="${{ github.event.inputs.version }}"
38
+ else
39
+ exit 0
40
+ fi
41
+ VERSION="${VERSION#v}"
42
+ mvn versions:set -DnewVersion=$VERSION -DgenerateBackupPoms=false
43
44
- name: Build and publish
45
env:
0 commit comments