35 lines
774 B
YAML
35 lines
774 B
YAML
name: Build and Release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '17'
|
|
distribution: 'temurin'
|
|
cache: gradle
|
|
|
|
- name: Grant execute permission for gradlew
|
|
run: chmod +x gradlew
|
|
|
|
- name: Build APK
|
|
run: ./gradlew :composeApp:assembleRelease
|
|
|
|
- name: Gitea Release
|
|
uses: akkuman/gitea-release-action@v1
|
|
with:
|
|
files: "composeApp/build/outputs/apk/release/*.apk"
|
|
server_url: "https://git.reya.su/"
|
|
repository: "reya/coop-mobile"
|
|
token: ${{ secrets.GITEA_TOKEN }} |