Compare commits

..

No commits in common. "f33906b96551d1e4649cecb8f10bf0831c4e0f8e" and "a77610c28559ed098a5250933eae03d478c252cd" have entirely different histories.

View File

@ -1,31 +1,22 @@
name: Gitea Android Builder name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is building an Android application run-name: ${{ gitea.actor }} is testing out Gitea Actions
on: on:
push: push:
branches: branches:
- main - main
jobs: jobs:
Build: Explore-Gitea-Actions:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- name: Greetings - run: echo "The job was automatically triggered by a ${{ gitea.event_name }} event."
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 }}." - run: echo "This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- name: set up JDK 23 - run: echo "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: actions/checkout@v4 uses: actions/checkout@v4
with: - run: echo "The ${{ gitea.repository }} repository has been cloned to the runner."
java-version: '23' - run: echo "The workflow is now ready to test your code on the runner."
distribution: 'temurin' - name: List files in the repository
- name: Grant execute permission for gradlew run: |
run: chmod +x gradlew ls ${{ gitea.workspace }}
- name: Build with Gradle - run: echo "This job's status is ${{ job.status }}."
uses: gradle/gradle-build-action@v4
with:
arguments: assembleRelease
- name: Upload JAR Artifact
uses: actions/upload-artifact@v4
with:
name: android-app-apk
path: app/build/outputs/apk/release/*.apk
- name: Status
run: echo "This job's status is ${{ job.status }}."