Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
nhachicha committed Feb 28, 2024
1 parent 8ebfa93 commit 7badeb3
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tools/publish_snapshots.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ settingsFile.writeText("""
</settings>
""".trimIndent())

printVersion()
printKeys()

debug("Upload artifacts for $version using $localMavenRepo")

// Iterate through a local Maven repository and find all Realm Kotlin packages that neeeds to be uploaded.
Expand Down Expand Up @@ -253,11 +256,33 @@ fun uploadFiles(files: PackageData) {
add("-Dfiles=${files.additionalFiles.map { "${files.fullPathToPackage}/${it.fileName}" }.joinToString(",")}")
add("-Dclassifiers=${files.additionalFiles.map { it.classifier }.joinToString(",")}")
add("-Dtypes=${files.additionalFiles.map { it.type }.joinToString(",")}")
add("-Darguments=-Dgpg.passphrase=$gpgPassPhrase")

}
debug("Running command: ${args.joinToString(" ")}")
runCommand(args, showOutput = true)
}

fun printVersion() {
val args = mutableListOf<String>()
args.run {
add("gpg")
add("--list-secret-keys")
}
debug("Running command: ${args.joinToString(" ")}")
runCommand(args, showOutput = true)
}

fun printKeys() {
val args = mutableListOf<String>()
args.run {
add("gpg")
add("--version")
}
debug("Running command: ${args.joinToString(" ")}")
runCommand(args, showOutput = true)

}
/**
* Run a system command and collect any output.
*/
Expand Down

0 comments on commit 7badeb3

Please sign in to comment.