From 5bd5311454fb37bfcc118a6e6e6d85a272595539 Mon Sep 17 00:00:00 2001 From: iliyangermanov Date: Fri, 25 Aug 2023 15:19:10 +0300 Subject: [PATCH] Add "APK" Github Actions Workflow --- .github/workflows/apk.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/apk.yml diff --git a/.github/workflows/apk.yml b/.github/workflows/apk.yml new file mode 100644 index 0000000000..7e09978cdd --- /dev/null +++ b/.github/workflows/apk.yml @@ -0,0 +1,35 @@ +name: APK + +on: push + +jobs: + assemble_demo_apk: + runs-on: ubuntu-latest + steps: + - name: Checkout GIT + uses: actions/checkout@v3 + + - name: Setup Java + uses: actions/setup-java@v3 + with: + distribution: 'adopt' + java-version: '18' + + - name: Enable Gradle Wrapper caching (optmization) + 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: Build Demo APK + run: ./gradlew assembleDemo + + - name: Upload the APK to Github Actions + uses: actions/upload-artifact@v3 + with: + name: Ivy-Wallet-Demo.apk + path: app/build/outputs/apk/demo/app-demo.apk