Skip to content

Commit

Permalink
Sign in each job
Browse files Browse the repository at this point in the history
  • Loading branch information
artemcheremnov committed Dec 12, 2023
1 parent 1db0170 commit a799476
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 226 deletions.
34 changes: 25 additions & 9 deletions VCL/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ android {
minSdk 24
targetSdk 33
// versionName "1.21.0"
versionName "1.21.2"
versionName "999.21.0"
versionCode 116
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
Expand Down Expand Up @@ -148,6 +148,14 @@ afterEvaluate {
url = 'https://github.com/velocitycareerlabs/WalletAndroid'
}
}
signing {
useInMemoryPgpKeys(
rootProject.ext.signingKeyId,
rootProject.ext.signingPrivateKey,
rootProject.ext.signingPassword,
)
// sign publishing.publications
}
}
release(MavenPublication) {
groupId getGroupId()
Expand Down Expand Up @@ -192,19 +200,27 @@ afterEvaluate {
url = 'https://github.com/velocitycareerlabs/WalletAndroid'
}
}
signing {
useInMemoryPgpKeys(
rootProject.ext.signingKeyId,
rootProject.ext.signingPrivateKey,
rootProject.ext.signingPassword,
)
// sign publishing.publications
}
}
}
}
}

signing {
useInMemoryPgpKeys(
rootProject.ext.signingKeyId,
rootProject.ext.signingPrivateKey,
rootProject.ext.signingPassword,
)
sign publishing.publications
}
// signing {
// useInMemoryPgpKeys(
// rootProject.ext.signingKeyId,
// rootProject.ext.signingPrivateKey,
// rootProject.ext.signingPassword,
// )
// sign publishing.publications
// }

repositories {
mavenCentral()
Expand Down
206 changes: 0 additions & 206 deletions VCL/build.gradle.bak

This file was deleted.

6 changes: 1 addition & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,4 @@ allprojects {

task clean(type: Delete) {
delete rootProject.buildDir
}

// Create custom tasks for publishing
task publishRelease(dependsOn: ['publishReleasePublicationToSonatypeRepository'])
task publishRc(dependsOn: ['publishRcPublicationToSonatypeRepository'])
}
12 changes: 6 additions & 6 deletions publish-core.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ ext {
signingPrivateKey = System.getenv("ANDROID_NEXUS_PRIVATE_KEY") ?: properties["signingPrivateKey"]
}

println("signingKeyId: ${signingKeyId}")
println("signingPassword: ${signingPassword}")
println("ossrhUsername: ${ossrhUsername}")
println("ossrhPassword: ${ossrhPassword}")
println("sonatypeStagingProfileId: ${sonatypeStagingProfileId}")
println("signingPrivateKey: ${signingPrivateKey}")
// println("signingKeyId: ${signingKeyId}")
// println("signingPassword: ${signingPassword}")
// println("ossrhUsername: ${ossrhUsername}")
// println("ossrhPassword: ${ossrhPassword}")
// println("sonatypeStagingProfileId: ${sonatypeStagingProfileId}")
// println("signingPrivateKey: ${signingPrivateKey}")

nexusPublishing {
repositories {
Expand Down

0 comments on commit a799476

Please sign in to comment.