Removed build, only deploy step

This commit is contained in:
Marko Frankovic 2025-03-20 14:20:25 +01:00
parent 7267936a30
commit 5c799eb089

View File

@ -41,6 +41,7 @@ jobs:
with:
java-version: '21'
distribution: 'corretto'
cache: maven
- name: Set up JDK from ENV
if: github.ref != 'refs/heads/feature/T2900-java21' && github.ref != 'refs/heads/feature/T2900-java-21'
@ -48,6 +49,7 @@ jobs:
with:
java-version: '${{ secrets.JAVA_VERSION }}'
distribution: 'corretto'
cache: maven
- name: Create Maven settings
run: |
@ -55,13 +57,9 @@ jobs:
env:
SETTINGS_XML: ${{ secrets.MVN_SETTINGS_XML }}
- name: Build with Maven
- name: Build and deploy artifacts
run: |
mvn -B -U clean package --file pom.xml
- name: Deploy artifacts
run: |
mvn deploy -U --file pom.xml -DskipTests -DrepositoryId=pravila--pravila-maven
mvn clean deploy -U --file pom.xml -DskipTests -DrepositoryId=pravila--pravila-maven
env:
GITHUB_TOKEN: ${{ github.token }}
CODEARTIFACT_AUTH_TOKEN: ${{ secrets.AWS_CA_TOKEN }}