From caa5c42ea8efc7b9dada930dd6852ab960cb43e6 Mon Sep 17 00:00:00 2001 From: MisterTechnik Date: Thu, 14 Nov 2024 02:22:13 +0100 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 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..15ab8f6 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +name: Build and deploy + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + cache: gradle + + #- name: Setup Android SDK + # uses: android-actions/setup-android@v3 + + - name: Build SampleApplication + run: | + chmod +x ./gradlew + ./gradlew --no-daemon build connectedCheck + - name: Archive production artifacts + uses: actions/upload-artifact@v4 + with: + name: my-artifact + path: | + ./app/build/outputs/apk/debug/app-debug.apk + overwrite: true