Skip to content

Commit 9cb0cff

Browse files
committed
add release workflow
1 parent 808b7dc commit 9cb0cff

File tree

3 files changed

+47
-5
lines changed

3 files changed

+47
-5
lines changed

.github/workflows/release.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: publish sdks
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Set up Maven Central Repository
12+
uses: actions/setup-java@v1
13+
with:
14+
java-version: 8
15+
server-id: ossrh
16+
server-username: MAVEN_USERNAME
17+
server-password: MAVEN_PASSWORD
18+
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
19+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
20+
- name: Publish to Apache Maven Central
21+
run: mvn clean deploy -Dmaven.test.skip=true -Prelease
22+
env:
23+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
24+
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
25+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

client/all/pom.xml

+10-2
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,9 @@
213213
<plugin>
214214
<groupId>org.apache.maven.plugins</groupId>
215215
<artifactId>maven-javadoc-plugin</artifactId>
216-
<version>2.10.4</version>
216+
<version>3.2.0</version>
217217
<configuration>
218+
<doclint>none</doclint>
218219
<encoding>${project.build.sourceEncoding}</encoding>
219220
<detectOfflineLinks>true</detectOfflineLinks>
220221
<breakiterator>true</breakiterator>
@@ -252,7 +253,14 @@
252253
<plugin>
253254
<groupId>org.apache.maven.plugins</groupId>
254255
<artifactId>maven-gpg-plugin</artifactId>
255-
<version>1.5</version>
256+
<version>3.0.1</version>
257+
<configuration>
258+
<!-- Prevent gpg from using pinentry programs -->
259+
<gpgArguments>
260+
<arg>--pinentry-mode</arg>
261+
<arg>loopback</arg>
262+
</gpgArguments>
263+
</configuration>
256264
<executions>
257265
<execution>
258266
<id>sign-artifacts</id>

pom.xml

+12-3
Original file line numberDiff line numberDiff line change
@@ -730,15 +730,17 @@
730730
</pluginRepository>
731731
</pluginRepositories>
732732
</profile>
733-
734733
<profile>
735734
<id>release</id>
736735
<build>
737736
<plugins>
738737
<plugin>
739738
<groupId>org.apache.maven.plugins</groupId>
740739
<artifactId>maven-javadoc-plugin</artifactId>
741-
<version>2.9.1</version>
740+
<version>3.2.0</version>
741+
<configuration>
742+
<doclint>none</doclint>
743+
</configuration>
742744
<executions>
743745
<execution>
744746
<id>attach-javadocs</id>
@@ -762,7 +764,14 @@
762764
<plugin>
763765
<groupId>org.apache.maven.plugins</groupId>
764766
<artifactId>maven-gpg-plugin</artifactId>
765-
<version>1.6</version>
767+
<version>3.0.1</version>
768+
<configuration>
769+
<!-- Prevent gpg from using pinentry programs -->
770+
<gpgArguments>
771+
<arg>--pinentry-mode</arg>
772+
<arg>loopback</arg>
773+
</gpgArguments>
774+
</configuration>
766775
<executions>
767776
<execution>
768777
<id>sign-artifacts</id>

0 commit comments

Comments
 (0)