From 724ff0a869ced0eb334a0f40d6de0d3a386964b7 Mon Sep 17 00:00:00 2001 From: Henrik Lepson <56916788+Henrik895@users.noreply.github.com> Date: Fri, 24 Sep 2021 20:20:52 +0300 Subject: [PATCH] MOB-9 create apk with github action --- .github/workflows/main.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..83a06c6 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + + workflow_dispatch: + +defaults: + run: + working-directory: ./MobileAuthApp +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: checkout + uses: actions/checkout@v2 + + - name: gradlew permission + run: chmod +x ./gradlew + + - name: run gradlew + run: ./gradlew assembleDebug + + - name: upload apk + uses: actions/upload-artifact@v2 + with: + name: apk + path: MobileAuthApp/app/build/outputs/apk/debug/app-debug.apk