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:
121
121
with : # running setup-java overwrites the settings.xml
122
122
distribution : ' temurin'
123
123
java-version : ' 17'
124
+ server-id : github-central
125
+ server-password : PACKAGES_CENTRAL_TOKEN
124
126
gpg-passphrase : MAVEN_GPG_PASSPHRASE
125
127
gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Only import once
126
128
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 }}
129
132
env :
130
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
133
+ PACKAGES_CENTRAL_TOKEN : ${{ secrets.PACKAGES_CENTRAL_TOKEN }}
131
134
MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
132
- working-directory : ${{ env.PRIMARY_MAVEN_MODULE }}
133
135
134
136
- name : Set up JDK
135
137
uses : actions/setup-java@v4
Original file line number Diff line number Diff line change @@ -21,14 +21,16 @@ jobs:
21
21
with : # running setup-java overwrites the settings.xml
22
22
distribution : ' temurin'
23
23
java-version : ' 17'
24
+ server-id : github-central
25
+ server-password : PACKAGES_CENTRAL_TOKEN
24
26
gpg-passphrase : MAVEN_GPG_PASSPHRASE
25
27
gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Only import once
26
28
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
29
31
working-directory : ${{ env.PRIMARY_MAVEN_MODULE }}
30
32
env :
31
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33
+ PACKAGES_CENTRAL_TOKEN : ${{ secrets.PACKAGES_CENTRAL_TOKEN }}
32
34
MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
33
35
34
36
- name : Set up JDK
You can’t perform that action at this time.
0 commit comments