File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 48
48
else
49
49
mvn -B -s .circleci/settings.xml deploy
50
50
fi
51
+ elif [[ -n "${DEPLOY_BRANCH}" ]]; then
52
+ echo $GPG_KEY | base64 --decode > signing-key
53
+ gpg --passphrase $GPG_PASSPHRASE --import signing-key
54
+ shred signing-key
55
+
56
+ mvn -B -s .circleci/settings-snapshots.xml deploy
51
57
fi
52
58
53
59
- run : bash <(curl -s https://codecov.io/bash)
Original file line number Diff line number Diff line change
1
+ <settings xmlns =" http://maven.apache.org/SETTINGS/1.1.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
2
+ xsi : schemaLocation =" http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" >
3
+ <servers >
4
+ <server >
5
+ <id >sonatype-nexus-snapshots</id >
6
+ <username >${env.SONATYPE_USER}</username >
7
+ <password >${env.SONATYPE_PASSWORD}</password >
8
+ </server >
9
+ </servers >
10
+ <profiles >
11
+ <profile >
12
+ <id >ci</id >
13
+ <repositories >
14
+ <repository >
15
+ <id >sonatype-nexus-snapshots</id >
16
+ <url >https://oss.sonatype.org/content/repositories/snapshots</url >
17
+ <layout >default</layout >
18
+ <releases >
19
+ <enabled >false</enabled >
20
+ </releases >
21
+ <snapshots >
22
+ <enabled >true</enabled >
23
+ </snapshots >
24
+ </repository >
25
+ </repositories >
26
+ </profile >
27
+ <profile >
28
+ <id >signing</id >
29
+ <properties >
30
+ <gpg .executable>gpg</gpg .executable>
31
+ <gpg .keyname>${env.GPG_KEY_NAME}</gpg .keyname>
32
+ <gpg .passphrase>${env.GPG_PASSPHRASE}</gpg .passphrase>
33
+ </properties >
34
+ </profile >
35
+ </profiles >
36
+ <activeProfiles >
37
+ <activeProfile >ci</activeProfile >
38
+ <activeProfile >signing</activeProfile >
39
+ </activeProfiles >
40
+ </settings >
You can’t perform that action at this time.
0 commit comments