Merge pull request #202 from myofficework000/feature/FirbasePhoneaAut… #168
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: Android Build and Deployment Pipeline | |
on: | |
push: | |
branches: | |
- 'master' | |
workflow_dispatch: | |
inputs: | |
app_id: | |
description: 'The application Id of the current build' | |
required: true | |
branch: | |
description: 'The branch from which we have to build' | |
required: true | |
jobs: | |
build: | |
name: Setup Environment and build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the code to specific branch | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.event.inputs.branch }} | |
- name: Set up JDK | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'zulu' | |
java-version: '11' | |
- name: Setup Android SDK | |
uses: android-actions/setup-android@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew |