diff --git a/.github/workflows/maven-packages-publish.yml b/.github/workflows/maven-packages-publish.yml index 507962b..27d8eb3 100644 --- a/.github/workflows/maven-packages-publish.yml +++ b/.github/workflows/maven-packages-publish.yml @@ -26,7 +26,7 @@ jobs: with: java-version: 11 distribution: 'adopt' - - name: maven install -s settings.xml + - name: maven install run: mvn clean install - name: Publish to GitHub Packages Apache Maven - run: server.github.password=${{ github.token }} make publish_all_packages \ No newline at end of file + run: GITHUB_TOKEN=${{ github.token }} make publish_all_packages \ No newline at end of file diff --git a/Makefile b/Makefile index decdec9..eaf1650 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ record_deployment: @"${PACT_CLI}" pact-broker record_deployment --pacticipant ${PACTICIPANT} --version ${GIT_COMMIT} --environment production --broker-base-url=${PACT_BROKER_URL} --broker-token=${PACT_BROKER_TOKEN} publish_all_packages: - mvn -f inventory/ deploy -s settings.xml - mvn -f shop/ deploy -s settings.xml - mvn -f shipment/ deploy -s settings.xml - mvn -f base-domain/ deploy -s settings.xml \ No newline at end of file + mvn -f inventory/ deploy -s settings.xml -Dserver.github.password=${GITHUB_TOKEN} + mvn -f shop/ deploy -s settings.xml -Dserver.github.password=${GITHUB_TOKEN} + mvn -f shipment/ deploy -s settings.xml -Dserver.github.password=${GITHUB_TOKEN} + mvn -f base-domain/ deploy -s settings.xml -Dserver.github.password=${GITHUB_TOKEN} \ No newline at end of file