From f6c30831ea385b921c26bf9d923daba9d119ab2a Mon Sep 17 00:00:00 2001 From: Mugunthan Date: Wed, 31 Aug 2022 00:45:25 +0530 Subject: [PATCH 1/2] Create Build.yml --- .github/workflows/Build.yml | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/Build.yml diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml new file mode 100644 index 0000000..a1044cb --- /dev/null +++ b/.github/workflows/Build.yml @@ -0,0 +1,47 @@ +name: Build and Test + +on: + + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + + workflow_dispatch: + + +jobs: + + build_job: + name: Building the APK + runs-on: ubuntu-latest + continue-on-error: true + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Restore Cache + uses: actions/cache@v2 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} + restore-keys: | + ${{ runner.os }}-gradle- + - name: Change wrapper permissions + run: chmod +x ./gradlew + + + - name: Touch local properties + run: touch local.properties + - name: Add Api Key + run: echo "apiKey=\"\"" >> local.properties + + - name: Assemble Debug + run: ./gradlew assembleDebug + + - name: Upload APK + uses: actions/upload-artifact@v2 + with: + name: LottieBottomNav-APK + path: app/build/outputs/apk/debug/**.apk From 167a9e1cfc455df099e2288123666c8621f48bbb Mon Sep 17 00:00:00 2001 From: Mugunthan Date: Wed, 31 Aug 2022 00:47:48 +0530 Subject: [PATCH 2/2] Update Build.yml --- .github/workflows/Build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index a1044cb..7503713 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -44,4 +44,4 @@ jobs: uses: actions/upload-artifact@v2 with: name: LottieBottomNav-APK - path: app/build/outputs/apk/debug/**.apk + path: sample/build/outputs/apk/debug/**.apk