File tree Expand file tree Collapse file tree 3 files changed +45
-6
lines changed
Expand file tree Collapse file tree 3 files changed +45
-6
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
2+ # For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path
3+
4+ name : Publish package to the Maven Central Repository
5+ on :
6+ release :
7+ types : [created]
8+ jobs :
9+ publish :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v2
13+ - name : Set up Maven Central Repository
14+ uses : actions/setup-java@v1
15+ with :
16+ java-version : 14
17+ server-id : ossrh
18+ server-username : MAVEN_USERNAME
19+ server-password : MAVEN_PASSWORD
20+ gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
21+ gpg-passphrase : MAVEN_GPG_PASSPHRASE
22+ - name : Publish package
23+ run : mvn -B deploy
24+ env :
25+ MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
26+ MAVEN_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
27+ MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
Original file line number Diff line number Diff line change @@ -27,4 +27,9 @@ hs_err_pid*
2727* .iml
2828
2929# Maven
30- target /
30+ target /
31+ .classpath
32+ .project
33+
34+ .settings /
35+ .vscode /
Original file line number Diff line number Diff line change 44
55 <groupId >engineer.nightowl</groupId >
66 <artifactId >dw-header-auth-bundle</artifactId >
7- <version >1.3.5-3-SNAPSHOT </version >
7+ <version >1.3.26-1 </version >
88 <packaging >jar</packaging >
99
1010 <name >${project.groupId} -${project.artifactId} </name >
1515 <connection >scm:git:git://github.com/nightowlengineer/dw-header-auth-bundle.git</connection >
1616 <developerConnection >scm:git:ssh://git@github.com/nightowlengineer/dw-header-auth-bundle.git</developerConnection >
1717 <url >https://github.com/nightowlengineer/dw-header-auth-bundle/tree/master</url >
18- <tag >HEAD </tag >
18+ <tag >1.3.26-1 </tag >
1919 </scm >
2020
2121 <developers >
4949 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
5050 <maven .compiler.source>1.8</maven .compiler.source>
5151 <maven .compiler.target>1.8</maven .compiler.target>
52- <dropwizard .version>1.3.5 </dropwizard .version>
52+ <dropwizard .version>1.3.26 </dropwizard .version>
5353 </properties >
5454
5555 <dependencies >
7171 <plugin >
7272 <groupId >org.apache.maven.plugins</groupId >
7373 <artifactId >maven-source-plugin</artifactId >
74- <version >3.0 .1</version >
74+ <version >3.2 .1</version >
7575 <executions >
7676 <execution >
7777 <id >attach-sources</id >
8484 <plugin >
8585 <groupId >org.apache.maven.plugins</groupId >
8686 <artifactId >maven-javadoc-plugin</artifactId >
87- <version >3.0.1 </version >
87+ <version >3.2.0 </version >
8888 <executions >
8989 <execution >
9090 <id >attach-javadocs</id >
105105 <goals >
106106 <goal >sign</goal >
107107 </goals >
108+ <configuration >
109+ <!-- Prevent `gpg` from using pinentry programs -->
110+ <gpgArguments >
111+ <arg >--pinentry-mode</arg >
112+ <arg >loopback</arg >
113+ </gpgArguments >
114+ </configuration >
108115 </execution >
109116 </executions >
110117 </plugin >
You can’t perform that action at this time.
0 commit comments