Skip to main content

Uploading to Google Play without a Draft Release

Updated over a week ago

Issue:

You would like to upload your app to Google Play, but you would like to upload only the app and forego a draft release.

Possible solutions:

By default, our Deploy to Google Play step does both bundle upload and draft release. You can work around this by creating a version of this step via forking it in Github, and commenting out the highlighted code https://github.com/bitrise-steplib/steps-google-play-deploy/blob/master/main.go#L232-L250
​

    // Update track    fmt.Println()    log.Infof("Update track")    versionCodeSlice := versionCodeMapToSlice(versionCodes)    if err := updateTracks(configs, service, appEdit, versionCodeSlice); err != nil {        return fmt.Sprintf("Failed to update track, reason: %v", err)    }    log.Donef("Track updated")    //    // Commit edit    fmt.Println()    log.Infof("Committing edit")    editsCommitCall := editsService.Commit(configs.PackageName, appEdit.Id)    editsCommitCall.ChangesNotSentForReview(changesNotSentForReview)    if _, err := editsCommitCall.Do(); err != nil {        return fmt.Sprintf("Failed to commit edit, error: %s", err)    }    log.Donef("Edit committed")

Did this answer your question?