Skip to content

Latest commit

 

History

History
84 lines (58 loc) · 2.85 KB

File metadata and controls

84 lines (58 loc) · 2.85 KB

Bitrise setup for continuous deployment

⚠️ Having set up Fastlane with yo rn-toolbox:fastlane-setup is a requirement

This will:

  • upload your app to HockeyApp on every push to the staging branch
  • upload your app to TestFlight and optionally Android Beta on every push to the master branch

1/ Setup a deployment workflow

Generate the bitrise.yml files

Run anywhere:

yo rn-toolbox:bitrise

This will generate bitrise/bitrise.yml.

Commit and push this bitrise.yml file.

2/ Create a new app on Bitrise

Setting up SSH

When asked Do you need to use an additional private repository?, select I need to.
Add the ssh key to a Github account that has access to both your project repository and your match certificates repository.

We recommend creating a bot/machine Github account for this. See here for more info on machine user.

Project build configuration

  • Select Other/Manual and choose a Xamarin XCode build.

Add secret environment variables

  • You need to provide the following secret variables in order for the build to run successfully
    • MATCH_PASSWORD
    • GRADLE_KEYSTORE_PASSWORD (Found in the .env file)
    • GRADLE_KEYSTORE_ALIAS_PASSWORD (Found in the .env file)
    • FL_HOCKEY_API_TOKEN (Found in the .env file)

Setup Android Beta deployment

If you want to deploy to Android Beta:

  1. head over to the Google Play Developers Console
  2. go to Settings > API Access

If you already have a Services accounts section with an e-mail and a link to see the authorizations, skip to 9. Else:

  1. if needed, accept the terms and conditions
  2. if needed, click the Create a project button
  3. under Services accounts, click Authorize access
  4. check :
  • Visibility
  • Edit store listing, pricing & distribution
  • Manage Production APKs
  • Manage Alpha & Beta APKs
  • Manage Alpha & Beta users
  1. submit
  2. come back to Settings > API Access
  3. under Services accounts, click Show in Google Developers Console.
  4. click Create credentials and Service account key.
  5. select Compute Engine default service account and JSON
  6. once you validate, your API key should be downloaded on your computer

Now that you have your API key:

  1. head over to Bitrise, edit your workflow, and go to the Code signing & Files section
  2. at the bottom of the page, click Add another File
  3. select Generic file
  4. enter the unique id GOOGLE_KEY
  5. upload the JSON key
  6. save the workflow

3/ Enjoy 🎈

Sit back and relax, you can now enjoy your first deployment build!

Testing

This generator also contains a Test pipe but no trigger to run it. If you want you can add one but we strongly recommend using TravisCI instead to run your tests.