File tree Expand file tree Collapse file tree 3 files changed +32
-8
lines changed Expand file tree Collapse file tree 3 files changed +32
-8
lines changed Original file line number Diff line number Diff line change 8
8
env :
9
9
GITHUB_USERNAME : x-access-token
10
10
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
11
+ OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
12
+ OSSRH_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
13
+ GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
11
14
12
15
jobs :
13
16
deploy-github :
14
- name : Deploy to GitHub Package Registry
17
+ name : GitHub
15
18
runs-on : ubuntu-latest
16
19
steps :
17
20
- uses : actions/checkout@v2
18
- - name : Deploy to GitHub Package Registry
21
+ - name : Deploy to GitHub
19
22
run : ./mvnw --batch-mode --settings settings.xml -Pgithub clean deploy
23
+
24
+ deploy-sonatype :
25
+ name : Sonatype
26
+ runs-on : ubuntu-latest
27
+ steps :
28
+ - uses : actions/checkout@v2
29
+ - name : Import GPG Keys
30
+ run : |
31
+ gpg --keyserver keyserver.ubuntu.com --recv-keys ${{ secrets.GPG_PUBLIC_KEY }}
32
+ echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --import --no-tty --batch --yes -
33
+ - name : Deploy to Sonatype
34
+ run : ./mvnw --batch-mode --settings settings.xml -Possrh,sign clean deploy
Original file line number Diff line number Diff line change 5
5
6
6
<groupId >io.github.kezhenxu94</groupId >
7
7
<artifactId >cache-lite</artifactId >
8
- <version >0.1.6-SNAPSHOT </version >
8
+ <version >0.1.7 </version >
9
9
10
10
<name >cache-lite</name >
11
11
<description >An extremely light-weight cache framework for Kotlin</description >
30
30
<connection >scm:git:git://github.com/kezhenxu94/cache-lite.git</connection >
31
31
<developerConnection >scm:git:git@github.com:kezhenxu94/cache-lite.git</developerConnection >
32
32
<url >https://github.com/kezhenxu94/cache-lite</url >
33
- <tag >v0.1.3 </tag >
33
+ <tag >v0.1.6 </tag >
34
34
</scm >
35
35
36
36
<issueManagement >
57
57
<kotlin .version>1.3.71</kotlin .version>
58
58
<junit .version>4.12</junit .version>
59
59
<java .version>1.8</java .version>
60
-
61
- <gpg .executable>gpg</gpg .executable>
62
- <gpg .keyname>${env.GPG_KEY_NAME} </gpg .keyname>
63
- <gpg .passphrase>${env.GPG_PASSPHRASE} </gpg .passphrase>
64
60
</properties >
65
61
66
62
<profiles >
81
77
</goals >
82
78
</execution >
83
79
</executions >
80
+ <configuration >
81
+ <gpgArguments >
82
+ <arg >--pinentry-mode</arg >
83
+ <arg >loopback</arg >
84
+ </gpgArguments >
85
+ </configuration >
84
86
</plugin >
85
87
</plugins >
86
88
</build >
247
249
<localCheckout >true</localCheckout >
248
250
<pushChanges >false</pushChanges >
249
251
<mavenExecutorId >forked-path</mavenExecutorId >
252
+ <arguments >-DskipTests</arguments >
250
253
</configuration >
251
254
</plugin >
252
255
</plugins >
Original file line number Diff line number Diff line change 7
7
</activeProfiles >
8
8
9
9
<profiles >
10
+ <profile >
11
+ <id >sign</id >
12
+ <properties >
13
+ <gpg .passphrase>${env.GPG_PASSPHRASE}</gpg .passphrase>
14
+ </properties >
15
+ </profile >
10
16
<profile >
11
17
<id >github</id >
12
18
<repositories >
You can’t perform that action at this time.
0 commit comments