Fixes for mvn-settings.xml
This commit is contained in:
@@ -46,12 +46,12 @@ jobs:
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_CA_PASSWORD }}
|
||||
|
||||
- name: Build with Maven
|
||||
run: mvn -B clean package --file pom.xml -s mvn-settings.xml
|
||||
run: |
|
||||
echo -e "${{ secrets.MVN_SETTINGS_XML }}" > mvn-settings.xml
|
||||
mvn -B clean package --file pom.xml -s mvn-settings.xml
|
||||
|
||||
- name: Deploy artifacts
|
||||
run: |
|
||||
echo "CodeArtifact token: $CODEARTIFACT_AUTH_TOKEN"
|
||||
echo -e "${{ secrets.MVN_SETTINGS_XML }}" > mvn-settings.xml
|
||||
mvn deploy --file pom.xml -s mvn-settings.xml -DrepositoryId=deploy
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
|
||||
Reference in New Issue
Block a user