Skip to content

Commit

Permalink
Update maven-publish.yml
Browse files Browse the repository at this point in the history
some paths adjusted
  • Loading branch information
andyrozman authored Mar 10, 2024
1 parent 9633049 commit 21bb05b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ jobs:
java-version: '8.0.402+6'
distribution: 'temurin'
server-id: jitpack.io # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
settings-path: ${{ github.workspace }}/java # location for the settings.xml file

- name: Build with Maven
working-directory: ./java
run: mvn -B package --file pom.xml

- name: Publish to GitHub Packages Apache Maven
working-directory: ./java
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
run: mvn deploy -s $GITHUB_WORKSPACE/java/settings.xml
env:
GITHUB_TOKEN: ${{ github.token }}

0 comments on commit 21bb05b

Please sign in to comment.