Move settings-xml setup to be after java install

This commit is contained in:
Darin Kelkhoff
2021-10-27 21:57:48 -05:00
parent 5d0f6fdc91
commit 8c058e0677

View File

@ -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