Skip to content

Add files via upload #8

Add files via upload

Add files via upload #8

Workflow file for this run

name: Java CI with Gradle
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write # Update to write permissions for creating releases
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/gradle-build-action@v1
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Build Application
run: ./gradlew build
- name: Add APK to GitHub releases
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: latest
prerelease: false
title: "Automatic Release"
files: |
app/build/outputs/apk/release/*.apk