File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 5959 run : |
6060 PROJECT_VERSION=$(mvn help:evaluate "-Dexpression=project.version" -q -DforceStdout)
6161 test "$PROJECT_VERSION" = "${GITHUB_REF##*/}"
62+ - name : Verify project version is -SNAPSHOT
63+ if : startsWith(github.ref, 'refs/tags/') == false
64+ run : |
65+ PROJECT_VERSION=$(mvn help:evaluate "-Dexpression=project.version" -q -DforceStdout)
66+ test "${PROJECT_VERSION: -9}" = "-SNAPSHOT"
6267 - name : Deploy to Maven Central
6368 run : mvn deploy -B -DskipTests -Psign,deploy-central --no-transfer-progress
6469 env :
8792 run : |
8893 PROJECT_VERSION=$(mvn help:evaluate "-Dexpression=project.version" -q -DforceStdout)
8994 test "$PROJECT_VERSION" = "${GITHUB_REF##*/}"
95+ - name : Verify project version is -SNAPSHOT
96+ if : startsWith(github.ref, 'refs/tags/') == false
97+ run : |
98+ PROJECT_VERSION=$(mvn help:evaluate "-Dexpression=project.version" -q -DforceStdout)
99+ test "${PROJECT_VERSION: -9}" = "-SNAPSHOT"
90100 - name : Deploy to GitHub Packages
91101 run : mvn deploy -B -DskipTests -Psign,deploy-github --no-transfer-progress
92102 env :
You can’t perform that action at this time.
0 commit comments