Fix maven build

This commit is contained in:
Andrea Cavalli 2021-07-28 12:17:25 +02:00
parent 17e1efb575
commit fc66b267e4
1 changed files with 2 additions and 3 deletions

View File

@ -8,7 +8,6 @@ on:
jobs:
build:
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
strategy:
matrix:
include:
@ -36,7 +35,7 @@ jobs:
echo "REVISION=$REVISION" >> $GITHUB_ENV
echo "IMPLEMENTATION_NAME=$IMPLEMENTATION_NAME" >> $GITHUB_ENV
- name: Set up JDK 15
if: github.ref == 'refs/heads/master'
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
uses: actions/setup-java@v1
with:
java-version: 15
@ -44,7 +43,7 @@ jobs:
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Deploy to Maven (Release)
if: github.ref == 'refs/heads/master'
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
shell: bash
run: |
echo "REVISION: $REVISION"