This repository was archived by the owner on Jan 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +34
-10
lines changed Expand file tree Collapse file tree 2 files changed +34
-10
lines changed Original file line number Diff line number Diff line change @@ -116,15 +116,27 @@ jobs:
116
116
with : # running setup-java again overwrites the settings.xml
117
117
distribution : ' temurin'
118
118
java-version : ' 8'
119
- server-id : ossrh
120
- server-username : MAVEN_CENTRAL_USERNAME
121
- server-password : MAVEN_CENTRAL_TOKEN
122
- gpg-passphrase : MAVEN_GPG_PASSPHRASE
119
+ # server-id: ossrh
120
+ # server-username: MAVEN_CENTRAL_USERNAME
121
+ # server-password: MAVEN_CENTRAL_TOKEN
122
+ # gpg-passphrase: MAVEN_GPG_PASSPHRASE
123
123
gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
124
+ # Due to https://github.com/actions/setup-java/issues/85 we can only
125
+ # add ONE server using setup-java...
126
+ overwrite-settings : false
127
+
128
+ # ... so let's simply copy a predefined settings.xml file into the m2 folder
129
+ # until GH makes it work
130
+ - name : Copy predefined settings into home m2 folder
131
+ run : |
132
+ mkdir -p ~/.m2/
133
+ cp .github/workflows/maven/m2-settings-release.xml ~/.m2/settings.xml
124
134
125
135
- name : Publish to OSSRH
126
- run : mvn -B deploy -Possrh
136
+ run : mvn -B deploy -Pxdev-build,ossrh
127
137
env :
138
+ JFROG_ARTIFACTORY_USERNAME : ${{ secrets.JFROG_ARTIFACTORY_USERNAME }}
139
+ JFROG_ARTIFACTORY_TOKEN : ${{ secrets.JFROG_ARTIFACTORY_TOKEN }}
128
140
MAVEN_CENTRAL_USERNAME : ${{ secrets.MAVEN_CENTRAL_USERNAME }}
129
141
MAVEN_CENTRAL_TOKEN : ${{ secrets.MAVEN_CENTRAL_TOKEN }}
130
142
MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
Original file line number Diff line number Diff line change @@ -14,15 +14,27 @@ jobs:
14
14
with : # running setup-java again overwrites the settings.xml
15
15
distribution : ' temurin'
16
16
java-version : ' 8'
17
- server-id : ossrh
18
- server-username : MAVEN_CENTRAL_USERNAME
19
- server-password : MAVEN_CENTRAL_TOKEN
20
- gpg-passphrase : MAVEN_GPG_PASSPHRASE
17
+ # server-id: ossrh
18
+ # server-username: MAVEN_CENTRAL_USERNAME
19
+ # server-password: MAVEN_CENTRAL_TOKEN
20
+ # gpg-passphrase: MAVEN_GPG_PASSPHRASE
21
21
gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
22
+ # Due to https://github.com/actions/setup-java/issues/85 we can only
23
+ # add ONE server using setup-java...
24
+ overwrite-settings : false
25
+
26
+ # ... so let's simply copy a predefined settings.xml file into the m2 folder
27
+ # until GH makes it work
28
+ - name : Copy predefined settings into home m2 folder
29
+ run : |
30
+ mkdir -p ~/.m2/
31
+ cp .github/workflows/maven/m2-settings-release.xml ~/.m2/settings.xml
22
32
23
33
- name : Publish to OSSRH
24
- run : mvn -B deploy -Possrh
34
+ run : mvn -B deploy -Pxdev-build,ossrh
25
35
env :
36
+ JFROG_ARTIFACTORY_USERNAME : ${{ secrets.JFROG_ARTIFACTORY_USERNAME }}
37
+ JFROG_ARTIFACTORY_TOKEN : ${{ secrets.JFROG_ARTIFACTORY_TOKEN }}
26
38
MAVEN_CENTRAL_USERNAME : ${{ secrets.MAVEN_CENTRAL_USERNAME }}
27
39
MAVEN_CENTRAL_TOKEN : ${{ secrets.MAVEN_CENTRAL_TOKEN }}
28
40
MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
You can’t perform that action at this time.
0 commit comments