test mvn settings #4

This commit is contained in:
Marko Frankovic 2025-02-27 13:15:15 +01:00
parent f6d43ba809
commit 663df42b61
3 changed files with 5 additions and 6 deletions

View File

@ -50,11 +50,11 @@ jobs:
- name: Build with Maven
run: |
mvn -B clean package --file pom.xml -s mvn-settings.xml
mvn -B clean package --file pom.xml
- name: Deploy artifacts
run: |
mvn deploy --file pom.xml -s mvn-settings.xml -DrepositoryId=deploy
mvn deploy --file pom.xml -DrepositoryId=pravila--pravila-maven
env:
GITHUB_TOKEN: ${{ github.token }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_CA_USER }}

View File

@ -69,9 +69,8 @@ jobs:
- name: Maven release
run: |
echo -e "${{ secrets.MVN_SETTINGS_XML }}" > mvn-settings.xml
mvn org.apache.maven.plugins:maven-release-plugin:3.1.0:prepare -s mvn-settings.xml -B -DrepositoryId=deploy -DconnectionUrl=$REPO_URL
mvn org.apache.maven.plugins:maven-release-plugin:3.1.0:perform -s mvn-settings.xml -B -DrepositoryId=deploy -DconnectionUrl=$REPO_URL
mvn org.apache.maven.plugins:maven-release-plugin:3.1.0:prepare -B -DrepositoryId=deploy -DconnectionUrl=$REPO_URL
mvn org.apache.maven.plugins:maven-release-plugin:3.1.0:perform -B -DrepositoryId=deploy -DconnectionUrl=$REPO_URL
env:
GITHUB_TOKEN: ${{ github.token }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_CA_USER }}

View File

@ -51,7 +51,7 @@ jobs:
MAVEN_USER: aws
- name: Build with Maven
run: mvn -B clean package -s mvn-settings.xml
run: mvn -B clean package
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_CA_USER }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_CA_PASSWORD }}