Skip to content

Commit

Permalink
consolidate maven step: no need for package + deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
digorgonzola committed Feb 20, 2024
1 parent ae11f20 commit 39f8fef
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/build-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,8 @@ jobs:
--output text)
echo "CODEARTIFACT_REPO_URL=$REPO_URL" >> "$GITHUB_ENV"
- name: Build with Maven
run: mvn -B package --file pom.xml

- name: Publish Artifacts to CodeArtifact Repository
run: mvn -B deploy
- name: Build with Maven & Publish to CodeArtifact
run: mvn -B clean deploy --file pom.xml
env:
CODEARTIFACT_AUTH_TOKEN: ${{ env.CODEARTIFACT_AUTH_TOKEN }}
CODEARTIFACT_REPO_URL: ${{ env.CODEARTIFACT_REPO_URL }}
Expand Down

0 comments on commit 39f8fef

Please sign in to comment.