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