From 8c058e0677c65c7753dc3f52adff296fdc585349 Mon Sep 17 00:00:00 2001 From: Darin Kelkhoff Date: Wed, 27 Oct 2021 21:57:48 -0500 Subject: [PATCH] Move settings-xml setup to be after java install --- .github/workflows/maven.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index c6efe122..c17eb6ae 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -18,6 +18,12 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Set up JDK 17 + uses: actions/setup-java@v2 + with: + java-version: '17' + distribution: 'adopt' + cache: maven - name: maven-settings-xml-action uses: whelk-io/maven-settings-xml-action@v20 with: @@ -25,11 +31,5 @@ jobs: servers: '[{ "id": "github", "username": "${{ secrets.QQQ_MAVEN_REGISTRY_USERNAME }}", "password": "${{ secrets.QQQ_MAVEN_REGISTRY_PASSWORD }}" }]' - name: Cat settings.xml run: cat /home/runner/.m2/settings.xml - - name: Set up JDK 17 - uses: actions/setup-java@v2 - with: - java-version: '17' - distribution: 'adopt' - cache: maven - name: Build with Maven run: mvn -U -B package --file pom.xml