TASK-4017 the maven setup does now not contain the wrapper anymore #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- '**' | |
tags-ignore: | |
- '**' | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Java and Maven | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
cache: 'maven' | |
server-id: 'reload' | |
server-username: ${{ secrets.MAVEN_SERVER_USERNAME }} | |
server-password: ${{ secrets.MAVEN_SERVER_PASSWORD }} | |
- name: Build with Maven verify | |
if: "github.ref != 'refs/heads/main'" | |
run: ./mvnw -B verify | |
- name: Build with Maven deploy | |
if: "github.ref == 'refs/heads/main'" | |
run: ./mvnw -B deploy |