Triple-T / gradle-play-publisher

GPP is Android's unofficial release automation Gradle Plugin. It can do anything from building, uploading, and then promoting your App Bundle or APK to publishing app listings and other metadata.
MIT License
4.13k stars 341 forks source link

Does publishBundle also build AAB by default? #1153

Closed ArcherEmiya05 closed 5 days ago

ArcherEmiya05 commented 6 days ago
image

I am actually a little confuse on this part. Does the task publishBundle compiles the project and build AAB? If it doesn't then which task is the one that actually includes the process of building APK or AAB? Or GPP only performs building AAB or APK if it doesn't find any of it during publishBundle?

I am building the AAB in the pipeline in a separate step via ./gradlew bundleRelease then artifact it for later use on other workflow where the AAB will also be needed so I want to avoid wasting build minute where GPP repeats the building of AAB.

I have the below setup. Everything works I just want to make sure that I am avoiding unnecessary building of AAB.

play {
    updatePriority.set(1)
    serviceAccountCredentials.set(file(project.property("PLAY_API_KEY_FILE") as String))
    artifactDir.set(file("build/outputs/bundle/release"))
}
SUPERCILEX commented 5 days ago

You're doing it correctly to avoid the rebuild.