Skip to content

fixes

fixes #9

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- initial
jobs:
android-build:
environment: development
name: Android Dev Build
runs-on: ubuntu-latest
container:
image: reactnativecommunity/react-native-android
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.9.1
- name: Checkout repo from dev branch
uses: actions/checkout@v3
with:
ref: initial
- name: create-json
id: add-firebase-credentials
uses: jsdaniell/create-json@v1.2.2
with:
name: 'wildlife-watcher-service-account.json'
json: ${{ secrets.FIREBASE_IAM_GOOGLE_SERVICES_JSON }}
dir: './fastlane'
- name: create-json
id: add-android-credentials
uses: jsdaniell/create-json@v1.2.2
with:
name: 'google-services.json'
json: ${{ secrets.ANDROID_GOOGLE_SERVICES_JSON }}
dir: './android/app'
- name: Install npm dependency
run: npm install
- name: Install bundler
run: |
gem install bundler
- name: Install gem plugins
run: |
bundle install
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Run fastlane
run: |
bundle exec fastlane android build_debug