(Android) Example nightly Workflow
Description
Example Workflow for nightly builds of an Android app. The Workflow contains:
-
Setting the version code and version name.
By default the app will get the build number (
$BITRISE_BUILD_NUMBER
) as the version code. -
Building a release Android App Bundle and uploading to Google Play internal testing.
bitrise.yml
--- format_version: '11' default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git project_type: android workflows: nightly: steps: - [email protected]: run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}' - [email protected]: {} - [email protected]: {} - [email protected]: inputs: - new_version_name: 1.0.0 - build_gradle_path: "$PROJECT_LOCATION/$MODULE/build.gradle" - [email protected]: inputs: - project_location: "$PROJECT_LOCATION" - module: "$MODULE" - build_type: aab - variant: release - [email protected]: {} - [email protected]: inputs: - service_account_json_key_path: "$BITRISEIO_SERVICE_ACCOUNT_JSON_KEY_URL" - package_name: io.bitrise.sample.android - status: completed - track: internal - [email protected]: inputs: - project_location: "$PROJECT_LOCATION" - module: "$MODULE" - variant: "$VARIANT" - [email protected]: {} - [email protected]: {} - [email protected]: inputs: - channel: "#build-notifications" - thumb_url: "$BITRISE_PUBLIC_INSTALL_PAGE_QR_CODE_IMAGE_URL" - webhook_url: "$SLACK_WEBHOOK" - [email protected]: {} app: envs: - opts: is_expand: false PROJECT_LOCATION: "." - opts: is_expand: false MODULE: app - VARIANT: debug opts: is_expand: false