From 397f349340f0d3174df5d21f96758857b60ad34c Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Thu, 7 Sep 2023 12:48:37 -0400 Subject: [PATCH] ci(publish): ensure job references token to read -core dependency --- .github/workflows/maven-publish.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven-publish.yaml b/.github/workflows/maven-publish.yaml index edf55935..47162c6b 100644 --- a/.github/workflows/maven-publish.yaml +++ b/.github/workflows/maven-publish.yaml @@ -28,8 +28,14 @@ jobs: server-id: github # Value of the distributionManagement/repository/id field of the pom.xml settings-path: ${{ github.workspace }} # location for the settings.xml file + - name: maven-settings + uses: s4u/maven-settings-action@v2 + with: + servers: '[{"id": "github", "username": "dummy", "password": "${env.GITHUB_TOKEN_REF}"}]' + githubServer: false + - name: Build with Maven - run: mvn -B -U package -s $GITHUB_WORKSPACE/settings.xml --file pom.xml + run: mvn -B -U package --file pom.xml - name: Publish to GitHub Packages Apache Maven run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml