Skip to main content

Uploading files for your builds

Abstract

If your build requires any files to make it work, you can upload them in the Code Signing tab of the Workflow Editor.

If your build requires any files to make it work, you can upload them to Bitrise on the App settings page. It accepts any file type, all you need to do is provide a unique ID and upload the file.

Once a file is uploaded, it is stored as an Environment Variable (Env Var). You can use this Env Var to access the file and use it in your builds. The file can also be:

File restrictions

There are certain restrictions on upload size and number of files:

  • You can't upload a file bigger than 5 MB.

  • You can only store a total of 5 different files at the same time. If you want to upload more, you need to delete one of the files in the storage.

To upload a file:

  1. Open your app on Bitrise with a user that has the Admin role on the app's team.

  2. On the main page of the app, click on the App Settings icon: settings.svg.

    app-settings.png
  3. On the left, select Files.

  4. Click Add file.

  5. In the dialog box, enter a unique ID in the File Storage ID input field.

    The unique ID will be part of the generated download URL that Bitrise stores as an Environment Variable.

    add-new-file.png
  6. Upload the file. You have two options:

    • Click anywhere in the Select a file to upload section and select the file from your computer.

    • Drag and drop a file into the Select a file to upload section.

    Remember that the file size cannot exceed 5 MB.

Protecting your uploaded files

Once you uploaded a file to Bitrise, you can set your uploaded files to Protected mode. This means that no one can download or reveal the file from your account but your builds can still use them. Bitrise will handle the Environment Variable attached to your uploaded files as a Secret.

  1. Open your app on Bitrise with a user that has the Admin role on the app's team.

  2. On the main page of the app, click on the App Settings icon: settings.svg.

    app-settings.png
  3. On the left, select Files.

  4. Click the horizontal ellipsis button next to the name of the file, and select Make protected.

  5. Click Make it protected in the dialog box.