ci: gate-only build workflow; tag-push release workflow with debug-keystore signing
Build / build (push) Successful in 4m45s
Build / build (push) Successful in 4m45s
This commit is contained in:
@@ -25,9 +25,3 @@ jobs:
|
||||
|
||||
- name: Build debug APK
|
||||
run: ./gradlew app:packageDebug musikr:testDebug
|
||||
|
||||
- name: Upload debug APK
|
||||
uses: https://github.com/actions/upload-artifact@v4
|
||||
with:
|
||||
name: auxio-fork-debug
|
||||
path: app/build/outputs/apk/debug/app-debug.apk
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
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 }}"
|
||||
Reference in New Issue
Block a user