CI/CD revamp
This commit is contained in:
parent
2f7a94b5de
commit
be208912b7
@ -1,22 +1,31 @@
|
|||||||
name: Gitea Actions Demo
|
name: Gitea Android Builder
|
||||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions
|
run-name: ${{ gitea.actor }} is building an Android application
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Explore-Gitea-Actions:
|
Build:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- run: echo "The job was automatically triggered by a ${{ gitea.event_name }} event."
|
- name: Greetings
|
||||||
- run: echo "This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
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 "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
- name: set up JDK 23
|
||||||
- name: Check out repository code
|
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- run: echo "The ${{ gitea.repository }} repository has been cloned to the runner."
|
with:
|
||||||
- run: echo "The workflow is now ready to test your code on the runner."
|
java-version: '23'
|
||||||
- name: List files in the repository
|
distribution: 'temurin'
|
||||||
run: |
|
- name: Grant execute permission for gradlew
|
||||||
ls ${{ gitea.workspace }}
|
run: chmod +x gradlew
|
||||||
- run: echo "This job's status is ${{ job.status }}."
|
- name: Build with Gradle
|
||||||
|
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 }}."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user