Skip to content

Commit

Permalink
split mvn build/verify and deploy into separate steps for maven-build…
Browse files Browse the repository at this point in the history
…-and-tag action
  • Loading branch information
igdianov committed Nov 6, 2023
1 parent 727df97 commit c9dc157
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/actions/maven-build-and-tag/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,21 @@ runs:
echo "testcontainers.reuse.enable=true" > ~/.testcontainers.properties
echo "TESTCONTAINERS_RYUK_DISABLED=true" >> $GITHUB_ENV
- name: Build and Test with Maven (and maybe Deploy)
- name: Build and Test with Maven
shell: bash
run: |
mvn -T1C de.qaware.maven:go-offline-maven-plugin:resolve-dependencies ${{ env.MAVEN_CLI_OPTS}} ${{ inputs.extra-maven-opts }}
mvn ${{ steps.define_maven_command.outputs.command }} ${{ env.MAVEN_CLI_OPTS}} ${{ inputs.extra-maven-opts }}
mvn -T1C de.qaware.maven:go-offline-maven-plugin:resolve-dependencies ${{ env.MAVEN_CLI_OPTS}}
mvn install ${{ env.MAVEN_CLI_OPTS}} ${{ inputs.extra-maven-opts }}
env:
MAVEN_CLI_OPTS: ${{ steps.compute-maven-options.outputs.result }} -Dlogging.root.level=off -Dspring.main.banner-mode=off -Ddocker.skip
MAVEN_USERNAME: ${{ inputs.maven-username }}
MAVEN_PASSWORD: ${{ inputs.maven-password }}

- name: Maybe Deploy Maven Artifacts
if: steps.define_maven_command.outputs.command == 'deploy'
shell: bash
run: |
mvn deploy:deploy ${{ env.MAVEN_CLI_OPTS}} -DskipTests
env:
MAVEN_CLI_OPTS: ${{ steps.compute-maven-options.outputs.result }} -Dlogging.root.level=off -Dspring.main.banner-mode=off -Ddocker.skip
MAVEN_USERNAME: ${{ inputs.maven-username }}
Expand Down

0 comments on commit c9dc157

Please sign in to comment.