Update maven-publish.yml

This commit is contained in:
illegitimate-egg 2025-08-08 17:18:16 +01:00 committed by GitHub
parent 7365ffbdc5
commit cc3380e437
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,13 +23,11 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
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: Build with Maven
run: mvn -B package --file pom.xml
- name: Publish to GitHub Packages Apache Maven
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
run: mvn deploy
env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ github.token }} # GITHUB_TOKEN is the default env for the password