Skip to content

Merge pull request #199 from myofficework000/Lesson_7_DemoScreen_9 #159

Merge pull request #199 from myofficework000/Lesson_7_DemoScreen_9

Merge pull request #199 from myofficework000/Lesson_7_DemoScreen_9 #159

Workflow file for this run

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