Skip to content

Create build.yml

Create build.yml #1

Workflow file for this run

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