File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 19
19
cache : ' maven'
20
20
- name : Build
21
21
env :
22
+ RELEASE_VERSION : ${{ github.event.release.tag_name }}
22
23
QUARKUS_CONTAINER_IMAGE_USERNAME : ${{ github.actor }}
23
24
QUARKUS_CONTAINER_IMAGE_PASSWORD : ${{ secrets.GITHUB_TOKEN }}
24
25
run : |
25
- # skip tests remove?
26
- ./mvnw clean install -DskipTests -Dquarkus.container-image.build=true -Dquarkus.kubernetes.namespace=default -Dquarkus.container-image.push=true
26
+ ./mvnw versions:set clean install versions:commit -DnewVersion="${RELEASE_VERSION}" -DskipTests -Dquarkus.container-image.build=true -Dquarkus.kubernetes.namespace=default -Dquarkus.container-image.push=true
27
+ ./mvnw ${MAVEN_ARGS} versions:set -DnewVersion="${RELEASE_VERSION}"
28
+ ./mvnw ${MAVEN_ARGS} -q build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion}-SNAPSHOT versions:commit
29
+ git config --local user.email "[email protected] "
30
+ git config --local user.name "GitHub Action"
31
+ git commit -m "Set new SNAPSHOT version into pom files." -a
32
+ - name : Push changes
33
+ uses : ad-m/github-push-action@master
34
+ with :
35
+ github_token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments