File tree 4 files changed +72
-4
lines changed
4 files changed +72
-4
lines changed Original file line number Diff line number Diff line change 1
- name : Lyrebird Java Client CI
1
+ name : Lyrebird Java Client Build and Test
2
2
3
3
on : [push, pull_request]
4
4
16
16
run : mvn clean verify
17
17
18
18
build :
19
-
20
19
runs-on : ubuntu-latest
21
20
22
21
steps :
26
25
with :
27
26
java-version : 1.8
28
27
- name : Build with Maven
29
- run : mvn package --file pom.xml
28
+ run : mvn package --file pom.xml
Original file line number Diff line number Diff line change
1
+ name : Lyrebird Java Client Release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' v*'
7
+
8
+ jobs :
9
+ deploy :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - uses : actions/checkout@v1
14
+ - name : Set up JDK 1.8
15
+ uses : actions/setup-java@v1
16
+ with :
17
+ java-version : 1.8
18
+ - name : Deploy to Github Package Registry
19
+ env :
20
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
21
+ run :
22
+ mvn --settings settings.xml deploy
Original file line number Diff line number Diff line change 5
5
6
6
<groupId >com.meituan.lyrebird.sdk</groupId >
7
7
<artifactId >lyrebird-java-client</artifactId >
8
- <version >1.0.0 </version >
8
+ <version >1.0.1 </version >
9
9
<build >
10
10
<plugins >
11
11
<plugin >
19
19
</plugins >
20
20
</build >
21
21
22
+ <distributionManagement >
23
+ <repository >
24
+ <id >github</id >
25
+ <name >GitHub Meituan-Dianping Apache Maven Packages</name >
26
+ <url >https://maven.pkg.github.com/Meituan-Dianping/lyrebird-java-client</url >
27
+ </repository >
28
+ </distributionManagement >
29
+
22
30
<dependencies >
23
31
<dependency >
24
32
<groupId >com.squareup.retrofit2</groupId >
Original file line number Diff line number Diff line change
1
+ <settings xmlns =" http://maven.apache.org/SETTINGS/1.0.0"
2
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : schemaLocation =" http://maven.apache.org/SETTINGS/1.0.0
3
+ http://maven.apache.org/xsd/settings-1.0.0.xsd" >
4
+
5
+ <activeProfiles >
6
+ <activeProfile >github</activeProfile >
7
+ </activeProfiles >
8
+
9
+ <profiles >
10
+ <profile >
11
+ <id >github</id >
12
+ <repositories >
13
+ <repository >
14
+ <id >central</id >
15
+ <url >https://repo1.maven.org/maven2</url >
16
+ <releases >
17
+ <enabled >true</enabled >
18
+ </releases >
19
+ <snapshots >
20
+ <enabled >true</enabled >
21
+ </snapshots >
22
+ </repository >
23
+ <repository >
24
+ <id >github</id >
25
+ <name >GitHub Meituan-Dianping Apache Maven Packages</name >
26
+ <url >https://maven.pkg.github.com/Meituan-Dianping</url >
27
+ </repository >
28
+ </repositories >
29
+ </profile >
30
+ </profiles >
31
+
32
+ <servers >
33
+ <server >
34
+ <id >github</id >
35
+ <username >X-Auth-Token</username >
36
+ <password >${env.GITHUB_TOKEN}</password >
37
+ </server >
38
+ </servers >
39
+ </settings >
You can’t perform that action at this time.
0 commit comments