File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 7
7
jobs :
8
8
build :
9
9
runs-on : ubuntu-latest
10
+ environment : release
10
11
steps :
11
12
- uses : actions/checkout@v3
12
13
- name : Set up JDK 11
Original file line number Diff line number Diff line change 1
1
import nebula.plugin.contacts.Contact
2
+ import java.util.Base64
2
3
3
4
plugins {
4
5
id(" org.owasp.dependencycheck" ) version " 7.1.1"
@@ -38,11 +39,13 @@ nexusPublishing {
38
39
}
39
40
40
41
signing {
41
- useInMemoryPgpKeys(
42
- System .getenv(" SIGNING_KEY_ID" ),
43
- System .getenv(" SIGNING_KEY" ),
44
- System .getenv(" SIGNING_KEY_PASSWORD" ))
45
- sign(publishing.publications[" nebula" ])
42
+ val signingKeyId = System .getenv(" SIGNING_KEY_ID" )
43
+ val signingKey = System .getenv(" SIGNING_KEY" )
44
+ val signingKeyPassword = System .getenv(" SIGNING_KEY_PASSWORD" )
45
+ if (signingKeyId != null && signingKey != null ) {
46
+ useInMemoryPgpKeys(signingKeyId, String (Base64 .getDecoder().decode(signingKey)), signingKeyPassword)
47
+ sign(publishing.publications[" nebula" ])
48
+ }
46
49
}
47
50
48
51
contacts {
You can’t perform that action at this time.
0 commit comments