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