File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -121,15 +121,17 @@ jobs:
121121 with : # running setup-java overwrites the settings.xml
122122 distribution : ' temurin'
123123 java-version : ' 17'
124+ server-id : github-central
125+ server-password : PACKAGES_CENTRAL_TOKEN
124126 gpg-passphrase : MAVEN_GPG_PASSPHRASE
125127 gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Only import once
126128
127- - name : Publish to Central Portal
128- run : ../mvnw -B deploy -P publish -DskipTests -DaltDeploymentRepository=github::https://maven.pkg.github.com/${{ github.repository }}
129+ - name : Publish to GitHub Packages Central
130+ run : ../mvnw -B deploy -P publish -DskipTests -DaltDeploymentRepository=github-central::https://maven.pkg.github.com/xdev-software/central
131+ working-directory : ${{ env.PRIMARY_MAVEN_MODULE }}
129132 env :
130- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
133+ PACKAGES_CENTRAL_TOKEN : ${{ secrets.PACKAGES_CENTRAL_TOKEN }}
131134 MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
132- working-directory : ${{ env.PRIMARY_MAVEN_MODULE }}
133135
134136 - name : Set up JDK
135137 uses : actions/setup-java@v4
Original file line number Diff line number Diff line change @@ -21,14 +21,16 @@ jobs:
2121 with : # running setup-java overwrites the settings.xml
2222 distribution : ' temurin'
2323 java-version : ' 17'
24+ server-id : github-central
25+ server-password : PACKAGES_CENTRAL_TOKEN
2426 gpg-passphrase : MAVEN_GPG_PASSPHRASE
2527 gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Only import once
2628
27- - name : Publish to GitHub Packages
28- run : ../mvnw -B deploy -P publish -DskipTests -DaltDeploymentRepository=github::https://maven.pkg.github.com/${{ github.repository }}
29+ - name : Publish to GitHub Packages Central
30+ run : ../mvnw -B deploy -P publish -DskipTests -DaltDeploymentRepository=github-central ::https://maven.pkg.github.com/xdev-software/central
2931 working-directory : ${{ env.PRIMARY_MAVEN_MODULE }}
3032 env :
31- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33+ PACKAGES_CENTRAL_TOKEN : ${{ secrets.PACKAGES_CENTRAL_TOKEN }}
3234 MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
3335
3436 - name : Set up JDK
You can’t perform that action at this time.
0 commit comments