Created
October 19, 2021 04:19
-
-
Save victorbruce/c6c3190bc9d607d5876a2d88f8b31ca7 to your computer and use it in GitHub Desktop.
Github action to deploy a react native application to firebase app distribution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy To Firebase App Distribution And Bump Tag Version | |
on: | |
push: | |
branches: [master] | |
jobs: | |
build-production: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout Repository on Github VM | |
uses: actions/checkout@v2 | |
- name: Run Node in VM | |
uses: actions/setup-node@master | |
- name: Decrypting | |
run: sh ./.github/scripts/decrypt.sh | |
env: | |
KEYS_KEYSTORE_PASSPHRASE: ${{secrets.KEYS_KEYSTORE_PASSPHRASE}} | |
- name: Make fastlane/keys.properties executable | |
run: | | |
chmod +x fastlane/keys.properties | |
- name: Dump fastlane/keys.properties to .env file | |
run: | | |
cat fastlane/keys.properties > fastlane/.env | |
- name: Install Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.6 | |
- name: Install Dependencies | |
run: npm install | |
- name: Install Fastlane | |
run: | | |
bundle install | |
bundle update fastlane | |
- name: Build and Publish Mobile App | |
run: | | |
bundle exec fastlane android distribute |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment