Skip to content

Commit

Permalink
Adding Maven settings to resolve the artifacts.
Browse files Browse the repository at this point in the history
  • Loading branch information
The4thLaw committed Feb 12, 2024
1 parent 485fe47 commit f898231
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/maven-for-branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@ jobs:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
# See
# https://maurocanuto.medium.com/using-github-private-packages-and-maven-in-github-actions-c9e2ea69e2bc
# https://github.com/s4u/maven-settings-action
- name: maven-settings
uses: s4u/maven-settings-action@v3
with:
servers: |
[{
"id": "github-the4thlaw",
"username": "The4thLaw",
"password": "${{ secrets.GITHUB_TOKEN }}"
}]
githubServer: false
- name: Build with Maven
run: mvn -B clean verify -DCI=true
working-directory: ./source
Expand Down

0 comments on commit f898231

Please sign in to comment.