Skip to content

Commit 12c8b27

Browse files
committed
updated release file
Signed-off-by: Attila Mészáros <[email protected]>
1 parent f3a54b3 commit 12c8b27

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,17 @@ jobs:
1919
cache: 'maven'
2020
- name: Build
2121
env:
22+
RELEASE_VERSION: ${{ github.event.release.tag_name }}
2223
QUARKUS_CONTAINER_IMAGE_USERNAME: ${{ github.actor }}
2324
QUARKUS_CONTAINER_IMAGE_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
2425
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 }}

0 commit comments

Comments
 (0)