Skip to content

Commit

Permalink
ci(publish): ensure job references token to read -core dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Sep 7, 2023
1 parent bcccd3c commit 397f349
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/maven-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 397f349

Please sign in to comment.