Removed build, only deploy step
This commit is contained in:
parent
7267936a30
commit
5c799eb089
10
.github/workflows/maven-publish.yml
vendored
10
.github/workflows/maven-publish.yml
vendored
@ -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 }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user