We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2053a7 commit e4ade26Copy full SHA for e4ade26
.github/workflows/release.yml
@@ -3,7 +3,9 @@ name: Publish package to the Maven Central Repository
3
on:
4
workflow_dispatch:
5
inputs:
6
- version:
+ release-version:
7
+ required: true
8
+ next-version:
9
required: true
10
11
@@ -30,3 +32,9 @@ jobs:
30
32
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
31
33
MAVEN_PASSWORD: ${{ secrets.SONATYPE_KEY }}
34
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
35
+ - name: Set new version
36
+ run: mvn versions:set -newVersion=${{ github.event.inputs.next-version }}
37
+ - name: Commit new version
38
+ run: git commit -m "Setting new snapshot version"
39
+ - name: Push changes
40
+ run: git push
0 commit comments