Skip to content

Commit d2053a7

Browse files
Update release.yml
1 parent a932019 commit d2053a7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Publish package to the Maven Central Repository
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
version:
7+
required: true
8+
59

610
jobs:
711
publish:
@@ -19,7 +23,7 @@ jobs:
1923
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
2024
gpg-passphrase: MAVEN_GPG_PASSPHRASE
2125
- name: Set version
22-
run: mvn versions:set -DnewVersion=${{ github.event.release.tag_name }}
26+
run: mvn versions:set -DnewVersion=${{ github.event.inputs.version }}
2327
- name: Publish package
2428
run: mvn -P release --batch-mode deploy -DskipTests
2529
env:

0 commit comments

Comments
 (0)