Skip to content

Commit

Permalink
Update mavenpublish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pecollet committed Jan 30, 2024
1 parent 7dd61f0 commit b4e04d8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/mavenpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,16 @@ jobs:
distribution: zulu
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

- uses: s4u/maven-settings-action@v3.0.0
with:
servers: |
[{
"id": "neo4j-enterprise",
"username": "${{ secrets.MAVEN_REPO_USER }}",
"password": "${{ secrets.MAVEN_REPO_PASSWORD }}"
}]
- name: Build with Maven
run: mvn -B package --file pom.xml
run: mvn -B --settings /home/runner/.m2/settings.xml clean 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 b4e04d8

Please sign in to comment.