This commit is contained in:
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@@ -17,9 +17,13 @@ jobs:
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Set versions
|
||||
run: |
|
||||
export BUILD_VERSION=$(test "$GITHUB_REF_TYPE" = "tag" && echo ${GITHUB_REF_NAME} || (echo ${GITHUB_SHA} | head -c 8))
|
||||
./mvnw versions:set -DnewVersion=${BUILD_VERSION}
|
||||
|
||||
- name: Build project
|
||||
run: ./mvnw -s .mvn/settings.xml clean install -DskipTests
|
||||
run: ./mvnw -s .mvn/settings.xml clean install
|
||||
|
||||
- name: Deploy project
|
||||
run: ./mvnw -s .mvn/settings.xml deploy -DskipTests
|
||||
|
||||
run: ./mvnw -s .mvn/settings.xml deploy
|
||||
|
||||
Reference in New Issue
Block a user