38 lines
895 B
YAML
38 lines
895 B
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
|
|
env:
|
|
ANDROID_HOME: /home/jay/Android/Sdk
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: angmar
|
|
steps:
|
|
- name: Checkout
|
|
uses: https://github.com/actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Set up JDK 21
|
|
uses: https://github.com/actions/setup-java@v4
|
|
with:
|
|
java-version: "21"
|
|
distribution: "jetbrains"
|
|
|
|
- name: Build release APK
|
|
run: ./gradlew app:packageRelease musikr:testDebug
|
|
|
|
- name: Stage APK
|
|
run: cp app/build/outputs/apk/release/app-release.apk "auxio-${GITHUB_REF_NAME}.apk"
|
|
|
|
- name: Create release
|
|
uses: https://gitea.com/actions/release-action@main
|
|
with:
|
|
files: auxio-${{ github.ref_name }}.apk
|
|
api_key: "${{ secrets.RELEASE_TOKEN }}"
|
|
title: "Auxio fork ${{ github.ref_name }}"
|