Skip to content

Update gradle-publish.yml #3

Update gradle-publish.yml

Update gradle-publish.yml #3

name: build
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew assembleDebug
- name: Compress APK
run: zip -r app-debug.zip app/build/outputs/apk/debug/app-debug.apk
- uses: actions/upload-artifact@v3
with:
name: app-debug.zip
path: app-debug.zip