2025-02-27 21:47:46 +05:00

32 lines
1.0 KiB
YAML

name: Gitea Android Builder
run-name: ${{ gitea.actor }} is building an Android application
on:
push:
branches:
- main
jobs:
Build:
runs-on: ubuntu-22.04
steps:
- name: Greetings
run: echo "The job was automatically triggered by a ${{ gitea.event_name }} event." && echo "This job is now running on a ${{ runner.os }}" && echo "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: set up JDK 23
uses: actions/checkout@v3
with:
java-version: '23'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
uses: gradle/gradle-build-action@v3
with:
arguments: assembleRelease
- name: Upload JAR Artifact
uses: actions/upload-artifact@v3
with:
name: android-app-apk
path: app/build/outputs/apk/release/*.apk
- name: Status
run: echo "This job's status is ${{ job.status }}."