Skip to content

Commit

Permalink
trying to make the proper assignment of environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
teixeira-fernando committed Oct 15, 2023
1 parent 18bd3c6 commit 449f6fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven-packages-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
run: GITHUB_TOKEN=${{ github.token }} make publish_all_packages
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
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}

0 comments on commit 449f6fa

Please sign in to comment.