Skip to content

Commit

Permalink
Revert "split mvn build/verify and deploy into separate steps for mav…
Browse files Browse the repository at this point in the history
…en-build-and-tag action"

This reverts commit c9dc157.
  • Loading branch information
igdianov committed Nov 7, 2023
1 parent 77398c5 commit 46eba9f
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/actions/maven-build-and-tag/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,21 +182,11 @@ runs:
echo "testcontainers.reuse.enable=true" > ~/.testcontainers.properties
echo "TESTCONTAINERS_RYUK_DISABLED=true" >> $GITHUB_ENV
- name: Build and Test with Maven
- name: Build and Test with Maven (and maybe Deploy)
shell: bash
run: |
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
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 }}
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 46eba9f

Please sign in to comment.