This repository was archived by the owner on Feb 15, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This workflow will deploy the Serializers and the Validator to the sonatype
2+ # staging environment. This will NOT automatically publish the artifacts. An
3+ # authorized user must still manually close the staging repository first.
4+
5+ name : Generate and Deploy to Sonatype
6+
7+ on :
8+ push :
9+ branches : [ main ]
10+
11+ jobs :
12+
13+ deploy :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v2
17+
18+ - name : Set up JDK 1.8
19+ uses : actions/setup-java@v2
20+ with :
21+ java-version : 11
22+ distribution : ' adopt'
23+ server-id : ossrh
24+ server-username : OSSRH_USERNAME
25+ server-password : OSSRH_PASSWORD
26+ gpg-private-key : ${{ secrets.MYGPGKEY_SEC }}
27+
28+ - name : Publish to Apache Maven Central
29+ run : mvn -P MavenCentral license:format deploy
30+ env :
31+ OSSRH_USERNAME : sebbader
32+ OSSRH_PASSWORD : ${{ secrets.SEBBADER_OSSHR_PASSWORD }}
33+ MAVEN_GPG_PASSPHRASE : ${{ secrets.GPG_KEY_PASSWORD }}
34+ GPG_PASSPHRASE : ${{ secrets.GPG_KEY_PASSWORD }}
Original file line number Diff line number Diff line change 187187 <groupId >org.apache.maven.plugins</groupId >
188188 <artifactId >maven-gpg-plugin</artifactId >
189189 <version >${plugin.gpg.version} </version >
190- <configuration >
191- <keyname >${gpg.keyname} </keyname >
192- <passphraseServerId >${gpg.keyname} </passphraseServerId >
193- </configuration >
194190 <executions >
195191 <execution >
196192 <id >sign-artifacts</id >
203199 </plugin >
204200 </plugins >
205201 </build >
206-
202+
207203 <!-- Central Repository deployment configuration -->
208204 <distributionManagement >
209205 <snapshotRepository >
You can’t perform that action at this time.
0 commit comments