|
|
@ -672,8 +672,15 @@ func doAndroidArchive(cmdline []string) { |
|
|
|
// Skip Maven deploy and Azure upload for PR builds
|
|
|
|
// Skip Maven deploy and Azure upload for PR builds
|
|
|
|
maybeSkipArchive(env) |
|
|
|
maybeSkipArchive(env) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Sign and upload the archive to Azure
|
|
|
|
|
|
|
|
archive := "geth-" + archiveBasename("android", env) + ".aar" |
|
|
|
|
|
|
|
os.Rename("geth.aar", archive) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if err := archiveUpload(archive, *upload, *signer); err != nil { |
|
|
|
|
|
|
|
log.Fatal(err) |
|
|
|
|
|
|
|
} |
|
|
|
// Sign and upload all the artifacts to Maven Central
|
|
|
|
// Sign and upload all the artifacts to Maven Central
|
|
|
|
os.Rename("geth.aar", meta.Package+".aar") |
|
|
|
os.Rename(archive, meta.Package+".aar") |
|
|
|
if *signer != "" && *deploy != "" { |
|
|
|
if *signer != "" && *deploy != "" { |
|
|
|
// Import the signing key into the local GPG instance
|
|
|
|
// Import the signing key into the local GPG instance
|
|
|
|
if b64key := os.Getenv(*signer); b64key != "" { |
|
|
|
if b64key := os.Getenv(*signer); b64key != "" { |
|
|
@ -694,13 +701,6 @@ func doAndroidArchive(cmdline []string) { |
|
|
|
"-settings=build/mvn.settings", "-Durl="+repo, "-DrepositoryId=ossrh", |
|
|
|
"-settings=build/mvn.settings", "-Durl="+repo, "-DrepositoryId=ossrh", |
|
|
|
"-DpomFile="+meta.Package+".pom", "-Dfile="+meta.Package+".aar") |
|
|
|
"-DpomFile="+meta.Package+".pom", "-Dfile="+meta.Package+".aar") |
|
|
|
} |
|
|
|
} |
|
|
|
// Sign and upload the archive to Azure
|
|
|
|
|
|
|
|
archive := "geth-" + archiveBasename("android", env) + ".aar" |
|
|
|
|
|
|
|
os.Rename(meta.Package+".aar", archive) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if err := archiveUpload(archive, *upload, *signer); err != nil { |
|
|
|
|
|
|
|
log.Fatal(err) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func gomobileTool(subcmd string, args ...string) *exec.Cmd { |
|
|
|
func gomobileTool(subcmd string, args ...string) *exec.Cmd { |
|
|
|