# Bitrise OTA app deployment

Bitrise has an integrated deployment system you can use to distribute your apps and other build artifacts.

You can distribute your apps over the air for your project’s team members or any stakeholder, even if they don't have a Bitrise account. You can also use it to archive your app and other build artifact files which will be available on the Bitrise project’s **Builds** page for viewing and downloading.

Here is a short recap on the different build Steps per platform.

| Platform | Build Step | Deploy Step to Bitrise |
| --- | --- | --- |
| iOS | [**Xcode Archive & Export for iOS**](https://github.com/bitrise-steplib/steps-xcode-archive) | **Deploy to Bitrise.io** |
| Android | [**Gradle Runner**](https://github.com/bitrise-io/steps-gradle-runner) or [**Android Build**](https://github.com/bitrise-steplib/bitrise-step-android-build) | **Deploy to Bitrise.io** |
| React Native | [**Android Build**](https://github.com/bitrise-steplib/bitrise-step-android-build) and/or [**Xcode Archive & Export for iOS**](https://github.com/bitrise-steplib/steps-xcode-archive) | **Deploy to Bitrise.io** |
| Ionic | [**Ionic Archive**](https://github.com/bitrise-steplib/steps-ionic-archive) | **Deploy to Bitrise.io** |
| Cordova | [**Cordova Archive**](https://github.com/bitrise-steplib/steps-cordova-archive) | **Deploy to Bitrise.io** |
| MacOS | [**Xcode Archive for Mac**](https://github.com/bitrise-steplib/steps-xcode-archive-mac) and/or [**Export macOS Xcode Archive**](https://github.com/bitrise-steplib/steps-export-xcarchive-mac) | **Deploy to Bitrise.io** |

## Deploying with the Deploy to Bitrise.io Step

The **Deploy to Bitrise.io** Step can perform several different functions:

- It uploads app binaries and other build artifacts to the **Artifacts** tab of the build's page.
- It creates a private install page for your app and notifies your team members about new builds of the app.
- Optionally, it can create a public install page that anyone with the link can use to install the app.
- It can send test results and logs to [test reports](/bitrise-ci/testing/test-reports/overview).

In this guide, we'll talk about how to use the Step to deploy app binaries (IPA/APK/AAB files) and distribute the link to the install page.

![Bitrise_OTA_app_Deployment.png](/img/_paligo/uuid-23eca453-8f3c-1bbf-e189-eae6a638e144.png)

### The deploy directory

The **Deploy directory or file path** input defines the path that the Step will check for files to deploy. If the input value is a file path, it will deploy that file. If the input value is a directory, it will deploy all files in the directory.

The default value is the BITRISE_DEPLOY_DIR [Environment Variable](/bitrise-ci/configure-builds/environment-variables) (Env Var). In most cases, you don't have to change this or worry about it in any way. If you use the official Bitrise Steps to build your apps, they will export all necessary files into this directory. In certain cases, it's worth checking whether your files end up in the correct location for deployment:

- If you use a **Script** Step to build your app, the best practice is to configure the Step to export the files to the BITRISE_DEPLOY_DIR Env Var.
- If you use a Step that isn't maintained by Bitrise, check where the Step exports any files it generates. If it isn't the BITRISE_DEPLOY_DIR, set the input to point to that location.

:::tip[Compressing all files into a .zip]

If you wish to compress all files found in the deploy directory into a single .zip file, set the **Compress artifacts into one file?** input to **true**.

:::

### The private install page

For installable artifacts (IPA, APK, and AAB files), the Step creates a private install page: the [artifact's details page](/bitrise-ci/run-and-analyze-builds/managing-build-files/build-artifacts-online#artifact-details) on Bitrise. Only the members of your project's Bitrise team can open it, after logging in to Bitrise.

The private install page is the recommended way to share builds with your testers:

1. Add your testers to the project's Bitrise team, for example, with the **Testers** role: [Roles and permissions for Bitrise CI](/bitrise-platform/projects/roles-and-permissions-for-bitrise-ci).
1. Set the **Notify: User Roles** input of the Step to the roles you want to notify. For example: `testers`.

The Step exports the URL of the private install page in the `BITRISE_ARTIFACT_DETAILS_PAGE_URL` and `BITRISE_ARTIFACT_DETAILS_PAGE_URL_MAP` Env Vars. You can use them to share the page in other ways, for example, in a Slack message.

What your team members can do on the private install page depends on the artifact:

| Artifact | Private install page |
| --- | --- |
| Ad Hoc and Development IPA | Install the app on registered test devices. |
| Enterprise IPA | Install the app on any device. |
| App Store IPA | View the details and download the file. |
| APK | View the details and download the file. |
| AAB | View the details and download the file. |

### The public install page

If you need to share builds with people who can't be added to your project's Bitrise team, you can enable a public install page with the **Enable public app install page** input. By default, the input value is set to **false**.

:::warning[Anyone with the link can install the app]

The public install page has a long and random URL, but it doesn't require logging in: anyone who has the link can install the app on their device. Use the private install page whenever possible.

:::

The public install page is available for APK files and for Ad Hoc, Development, and Enterprise IPA files. IPA files exported for App Store distribution never get a public install page.

:::note[Registering test devices]

For Android apps, you don’t have to register your test devices to be able to install the app on them, as Android apps don’t have per-device install restrictions. However, you’ll have to enable the **Unknown Sources** option in Android to be able to install the APK/AAB from outside of the Google Play Store.

For iOS apps, [the test devices must be registered and provisioned](/bitrise-ci/deploying/ios-deployment/installing-an-ipa-file-from-the-public-install-page), otherwise, you can't install the app from the public install page on them.

:::

The page includes all the important details of the build, such as filename, size, version code, minimum SDK version, and build number. If the public install page is enabled:

- The users defined in the **Notify: Emails** and **Notify: User Roles** inputs receive the link to the public install page.
- The Step exports the URL of the public install page in the `BITRISE_PUBLIC_INSTALL_PAGE_URL` and `BITRISE_PUBLIC_INSTALL_PAGE_URL_MAP` Env Vars.

### Notifying users

The **Deploy to Bitrise.io Step** can send email notifications to specified users. The notification includes the link to the private install page or, if it's enabled, to the public install page. The Step can notify users in three ways:

- The **Notify: User Roles** input allows you to notify the users on the project's Bitrise team. If the **Enable public app install page** input is set to **false**, the notification includes the link to the private install page. If it's set to **true**, the notification includes the link to the public install page.

  The default value is **everyone**: this means everyone on the project's Bitrise team gets a notification. You can choose any other role: in that case, only users with that particular role will get a notification. Set it to **none** to not notify anyone. For the available roles, see [Roles and permissions for Bitrise CI](/bitrise-platform/projects/roles-and-permissions-for-bitrise-ci).
- The **Notify: User Roles regardless of project watching preferences** input works like **Notify: User Roles**, but it also notifies the users with the specified roles who chose not to watch the project. Separate multiple roles with commas. It's empty by default: no one is notified through it. Set it to **none** to not notify anyone. For the available roles, see [Roles and permissions for Bitrise CI](/bitrise-platform/projects/roles-and-permissions-for-bitrise-ci).
- The **Notify: Emails** input allows you to notify anyone via email. This includes people who don't have a Bitrise account. This way, you can send the public install page to anyone, inviting them to install the app.

  :::important[Public install page required]

  If the **Enable public app install page** input is set to **false**, the **Notify: Emails** input is ignored and no email is sent to these addresses! Instead of enabling the public install page, consider adding these people to your project's Bitrise team and notifying them with the **Notify: User Roles** input.

  :::

  :::caution[Use a Secret]

  The input only takes [Secrets](/bitrise-ci/configure-builds/secrets) as a value: you must create a Secret and specify the email addresses in the Secret's value.

  :::
