diff --git a/.github/workflows/continuous-delivery.yml b/.github/workflows/continuous-delivery.yml index cf2dcff..df95cfc 100644 --- a/.github/workflows/continuous-delivery.yml +++ b/.github/workflows/continuous-delivery.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - temp permissions: contents: read @@ -28,7 +29,7 @@ jobs: distribution: 'temurin' cache: maven - name: Run Maven - run: mvn -B -s ./.mvn/settings.xml clean deploy + run: make mvn-deploy-ci-cd env: GITHUB_ACTOR: ${{ github.actor }} GITHUB_TOKEN: ${{ github.token }} \ No newline at end of file diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 58f2be0..cff0ca9 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -28,4 +28,4 @@ jobs: distribution: 'temurin' cache: maven - name: Run Maven - run: mvn -B -s ./.mvn/settings.xml clean verify \ No newline at end of file + run: make mvn-verify-ci-cd \ No newline at end of file diff --git a/Makefile b/Makefile index 4ac9c6e..1dca496 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,10 @@ mvn-verify: format mvn-verify-skip-tests: format mvn clean verify -DskipTests +.PHONY: mvn-verify-ci-cd +mvn-verify-ci-cd: + mvn mvn -B -s ./.mvn/settings.xml verify + # Run tests and install locally .PHONY: mvn-install mvn-install: format @@ -23,6 +27,10 @@ mvn-install: format mvn-install-skip-tests: format mvn clean install -DskipTests +.PHONY: mvn-deploy-ci-cd +mvn-deploy-ci-cd: + mvn mvn -B -s ./.mvn/settings.xml deploy + # Check if version is a SNAPSHOT .PHONY: check-if-snapshot-version check-if-snapshot-version: