uses mvn:versions instead of jgitver
All checks were successful
CI / deploy (push) Successful in 4m46s
All checks were successful
CI / deploy (push) Successful in 4m46s
This commit is contained in:
18
.github/workflows/ci.yaml
vendored
18
.github/workflows/ci.yaml
vendored
@@ -20,10 +20,14 @@ jobs:
|
||||
distribution: 'zulu'
|
||||
java-version: '21'
|
||||
|
||||
- name: Build Runner
|
||||
- name: new Version
|
||||
if: github.ref_name == 'main'
|
||||
run: |
|
||||
./mvnw -B --no-transfer-progress clean validate -Prelease
|
||||
./mvnw -B --no-transfer-progress versions:commit -Djgitver.skip=true
|
||||
|
||||
- name: Build Runner
|
||||
run: |
|
||||
./mvnw -B --no-transfer-progress clean verify -Pnative -Dquarkus.native.remote-container-build=true -Djgitver.skip=true
|
||||
|
||||
- name: Add coverage to PR
|
||||
@@ -37,7 +41,8 @@ jobs:
|
||||
title: ${{ env.REPO }} Coverage
|
||||
|
||||
- id: version
|
||||
run: echo "version=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> "GITHUB_OUTPUT"
|
||||
name: Version
|
||||
run: echo "VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> ${GITHUB_OUTPUT}
|
||||
|
||||
- name: Build Container
|
||||
if: github.ref_name == 'main'
|
||||
@@ -50,5 +55,10 @@ jobs:
|
||||
- name: create tag
|
||||
if: github.ref_name == 'main'
|
||||
run: |
|
||||
git tag ${{ steps.version.outputs.version }} -m "release ${{ steps.version.outputs.version }}"
|
||||
git push origin ${{ steps.version.outputs.version }}
|
||||
git config user.email "ci@git.arindy.de"
|
||||
git config user.name "gitea"
|
||||
git add ./pom.xml
|
||||
git commit -m "[no ci] release ${{ steps.version.outputs.VERSION }}"
|
||||
git tag ${{ steps.version.outputs.VERSION }} -m "release ${{ steps.version.outputs.VERSION }}"
|
||||
git push origin main
|
||||
git push origin ${{ steps.version.outputs.VERSION }}
|
||||
|
||||
Reference in New Issue
Block a user