File tree 8 files changed +79
-104
lines changed
brpc-spring-boot-examples
brpc-spring-boot-examples-api
brpc-spring-boot-examples-client
spring-cloud-brpc-examples
spring-cloud-brpc-examples-api
spring-cloud-brpc-examples-client
8 files changed +79
-104
lines changed Original file line number Diff line number Diff line change
1
+ name : Maven Publish
2
+
3
+ on : workflow_dispatch
4
+
5
+ jobs :
6
+ publish :
7
+
8
+ runs-on : ubuntu-latest
9
+ permissions :
10
+ contents : read
11
+ packages : write
12
+
13
+ steps :
14
+ - name : Checkout main branch & Change path to client
15
+ uses : actions/checkout@v2
16
+ with :
17
+ ref : ' master'
18
+ - name : Set Java Env
19
+ uses : actions/setup-java@v2
20
+ with :
21
+ java-version : ' 8'
22
+ distribution : ' adopt'
23
+ server-id : ossrh
24
+ server-username : MAVEN_USERNAME
25
+ server-password : MAVEN_PASSWORD
26
+
27
+
28
+ - name : Release Maven package
29
+ uses : samuelmeuli/action-maven-publish@v1
30
+ with :
31
+ gpg_private_key : ${{ secrets.GPG_SECRET }}
32
+ gpg_passphrase : ${{ secrets.GPG_PASSWD }}
33
+ nexus_username : ${{ secrets.OSSRH_USER }}
34
+ nexus_password : ${{ secrets.OSSRH_PASSWD }}
35
+ maven_args : -Dmaven.test.skip=true -Dgpg.skip=false
36
+ maven_profiles : deploy
37
+ env :
38
+ MAVEN_USERNAME : ${{ secrets.OSSRH_USER }}
39
+ MAVEN_PASSWORD : ${{ secrets.OSSRH_PASSWD }}
Original file line number Diff line number Diff line change 35
35
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
36
36
</properties >
37
37
38
- <profiles >
39
- <profile >
40
- <id >release</id >
41
- <build >
42
- <plugins >
43
- <plugin >
44
- <groupId >org.apache.maven.plugins</groupId >
45
- <artifactId >maven-deploy-plugin</artifactId >
46
- <version >2.8.2</version >
47
- <configuration >
48
- <skip >true</skip >
49
- </configuration >
50
- </plugin >
51
- </plugins >
52
- </build >
53
- </profile >
54
- </profiles >
55
-
56
38
<build >
57
39
<plugins >
58
40
<plugin >
Original file line number Diff line number Diff line change 35
35
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
36
36
</properties >
37
37
38
- <profiles >
39
- <profile >
40
- <id >release</id >
41
- <build >
42
- <plugins >
43
- <plugin >
44
- <groupId >org.apache.maven.plugins</groupId >
45
- <artifactId >maven-deploy-plugin</artifactId >
46
- <version >2.8.2</version >
47
- <configuration >
48
- <skip >true</skip >
49
- </configuration >
50
- </plugin >
51
- </plugins >
52
- </build >
53
- </profile >
54
- </profiles >
38
+
55
39
56
40
<dependencies >
57
41
<dependency >
Original file line number Diff line number Diff line change 35
35
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
36
36
</properties >
37
37
38
- <profiles >
39
- <profile >
40
- <id >release</id >
41
- <build >
42
- <plugins >
43
- <plugin >
44
- <groupId >org.apache.maven.plugins</groupId >
45
- <artifactId >maven-deploy-plugin</artifactId >
46
- <version >2.8.2</version >
47
- <configuration >
48
- <skip >true</skip >
49
- </configuration >
50
- </plugin >
51
- </plugins >
52
- </build >
53
- </profile >
54
- </profiles >
55
38
56
39
<dependencyManagement >
57
40
<dependencies >
Original file line number Diff line number Diff line change 41
41
<module >spring-cloud-brpc-examples</module >
42
42
</modules >
43
43
44
- <build >
45
- <pluginManagement >
46
- <plugins >
47
- <plugin >
48
- <groupId >org.apache.maven.plugins</groupId >
49
- <artifactId >maven-deploy-plugin</artifactId >
50
- <version >2.8.2</version >
51
- <configuration >
52
- <skip >true</skip >
53
- </configuration >
54
- </plugin >
55
- </plugins >
56
- </pluginManagement >
57
- </build >
44
+ <profiles >
45
+ <profile >
46
+ <id >deploy</id >
47
+ <build >
48
+ <plugins >
49
+ <plugin >
50
+ <groupId >org.apache.maven.plugins</groupId >
51
+ <artifactId >maven-deploy-plugin</artifactId >
52
+ <version >2.8.2</version >
53
+ <configuration >
54
+ <skip >true</skip >
55
+ </configuration >
56
+ </plugin >
57
+ </plugins >
58
+ </build >
59
+ </profile >
60
+ </profiles >
58
61
59
62
</project >
Original file line number Diff line number Diff line change 35
35
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
36
36
</properties >
37
37
38
- <profiles >
39
- <profile >
40
- <id >release</id >
41
- <build >
42
- <plugins >
43
- <plugin >
44
- <groupId >org.apache.maven.plugins</groupId >
45
- <artifactId >maven-deploy-plugin</artifactId >
46
- <version >2.8.2</version >
47
- <configuration >
48
- <skip >true</skip >
49
- </configuration >
50
- </plugin >
51
- </plugins >
52
- </build >
53
- </profile >
54
- </profiles >
38
+
55
39
56
40
<dependencies >
57
41
<dependency >
Original file line number Diff line number Diff line change 35
35
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
36
36
</properties >
37
37
38
- <profiles >
39
- <profile >
40
- <id >release</id >
41
- <build >
42
- <plugins >
43
- <plugin >
44
- <groupId >org.apache.maven.plugins</groupId >
45
- <artifactId >maven-deploy-plugin</artifactId >
46
- <version >2.8.2</version >
47
- <configuration >
48
- <skip >true</skip >
49
- </configuration >
50
- </plugin >
51
- </plugins >
52
- </build >
53
- </profile >
54
- </profiles >
55
38
56
39
<dependencyManagement >
57
40
<dependencies >
Original file line number Diff line number Diff line change 50
50
<module >brpc-spring</module >
51
51
<module >brpc-spring-boot-starter</module >
52
52
<module >spring-cloud-brpc</module >
53
- <module >brpc-java-examples</module >
53
+ <!-- < module>brpc-java-examples</module> -- >
54
54
</modules >
55
55
56
56
<issueManagement >
88
88
89
89
<profiles >
90
90
<profile >
91
- <id >release </id >
91
+ <id >deploy </id >
92
92
<build >
93
93
<plugins >
94
94
<plugin >
104
104
</goals >
105
105
</execution >
106
106
</executions >
107
+ <configuration >
108
+ <gpgArguments >
109
+ <arg >--pinentry-mode</arg >
110
+ <arg >loopback</arg >
111
+ </gpgArguments >
112
+ </configuration >
113
+ </plugin >
114
+ <plugin >
115
+ <groupId >org.sonatype.plugins</groupId >
116
+ <artifactId >nexus-staging-maven-plugin</artifactId >
117
+ <version >1.6.7</version >
118
+ <extensions >true</extensions >
119
+ <configuration >
120
+ <serverId >ossrh</serverId >
121
+ <nexusUrl >https://oss.sonatype.org/</nexusUrl >
122
+ <autoReleaseAfterClose >true</autoReleaseAfterClose >
123
+ </configuration >
107
124
</plugin >
108
125
<plugin >
109
126
<groupId >org.apache.maven.plugins</groupId >
129
146
</build >
130
147
<distributionManagement >
131
148
<snapshotRepository >
132
- <id >oss </id >
149
+ <id >ossrh </id >
133
150
<url >https://oss.sonatype.org/content/repositories/snapshots/</url >
134
151
</snapshotRepository >
135
152
<repository >
136
- <id >oss </id >
153
+ <id >ossrh </id >
137
154
<url >https://oss.sonatype.org/service/local/staging/deploy/maven2/</url >
138
155
</repository >
139
156
</distributionManagement >
You can’t perform that action at this time.
0 commit comments