File tree 2 files changed +51
-0
lines changed
2 files changed +51
-0
lines changed Original file line number Diff line number Diff line change 23
23
GPG_KEY_BASE64 : ${{ secrets.GPG_KEY_BASE64 }}
24
24
GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
25
25
run : ./gpg-setup.sh
26
+ - name : Deploy to OSS Sonatype
27
+ env :
28
+ SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
29
+ # mvn -Prelease source:jar javadoc:jar deploy -Dgpg.passphrase=thephrase
30
+ run : mvn -B -Prelease source:jar javadoc:jar deploy --file pom.xml -s settings-template.xml -Dgpg.passphrase=${{ secrets.SONATYPE_PASSWORD }}
31
+
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <settings xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" >
4
+ <!--
5
+ enabled Whether to use this repository for downloading this type
6
+ of artifact. updatePolicy The frequency for downloading updates - can be
7
+ "always", "daily" (default), "interval:XXX" (in minutes) or "never" (only
8
+ if it doesn't exist locally). checksumPolicy What to do when verification
9
+ of an artifact checksum fails - warn, fail, etc. Valid values are "fail"
10
+ or "warn".
11
+ -->
12
+ <servers >
13
+
14
+ <server >
15
+ <id >sonatype-server</id >
16
+ <username >bsorrentino</username >
17
+ <password >${env.SONATYPE_PASSWORD}</password >
18
+ </server >
19
+
20
+ </servers >
21
+
22
+ <profiles >
23
+
24
+ <profile >
25
+ <id >sonatype</id >
26
+ <activation >
27
+ <activeByDefault >true</activeByDefault >
28
+ </activation >
29
+
30
+ <properties >
31
+ <release .repo.id>sonatype-server</release .repo.id>
32
+ <release .repo.url>https://oss.sonatype.org/service/local/staging/deploy/maven2</release .repo.url>
33
+ <snapshot .repo.id>sonatype-server</snapshot .repo.id>
34
+ <snapshot .repo.url>https://oss.sonatype.org/content/repositories/snapshots</snapshot .repo.url>
35
+ <group .repo.url>http://oss.sonatype.org/content/groups/public</group .repo.url>
36
+ </properties >
37
+
38
+ </profile >
39
+
40
+ </profiles >
41
+
42
+ <proxies >
43
+ </proxies >
44
+
45
+ </settings >
You can’t perform that action at this time.
0 commit comments