File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change 11name : Release to Maven Central
22
33on :
4- push :
5- tags :
6- - ' v[0-9]+.[0-9]+.[0-9]+'
4+ workflow_dispatch :
5+ inputs :
6+ releaseVersion :
7+ description : ' Release and tag version'
8+ required : true
9+ default : " v1.5.0-dev.N"
10+ developmentVersion :
11+ description : ' Version to use for new working copy'
12+ required : true
13+ default : ' 2.0.0-SNAPSHOT'
714
815jobs :
916 release :
2835 git config user.email "actions@github.com"
2936 git config user.name "GitHub Actions"
3037
38+ - name : Run release prepare
39+ env :
40+ RELEASE_VERSION : ${{ github.event.inputs.releaseVersion }}
41+ DEVELOPMENT_VERSION : ${{ github.event.inputs.developmentVersion }}
42+ run : |
43+ ./mvnw release:prepare -s .maven_settings.xml -DskipTests -Darguments=-DskipTests \
44+ -DreleaseVersion="$RELEASE_VERSION" -Dtag="$RELEASE_VERSION" \
45+ -DdevelopmentVersion="$DEVELOPMENT_VERSION"
46+
3147 - name : Publish to Maven Central
3248 run : |
3349 ./mvnw -B clean deploy -PsonatypeRelease -DskipTests
You can’t perform that action at this time.
0 commit comments