ci: rework workflows to add one for android

This commit is contained in:
2026-06-12 09:00:10 +02:00
parent 961a8d3918
commit 3affa455d0
3 changed files with 61 additions and 1 deletions
@@ -0,0 +1,37 @@
name: Build and release the latest android apk
on:
push:
branches:
- master
jobs:
rolling-release-apk:
runs-on: nixos
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Build apk
run: devenv shell build-android
- name: Move latest Tag
run: |
git config user.name "gitea-actions"
git config user.email "gitea-actions@localhost"
# Forcefully creates/moves the 'latest' tag to the current commit
git tag -f latest
# Force-pushes the updated tag back to your Gitea repository
git push origin -f latest
- name: Update Gitea Release & Swap APK
uses: akkuman/gitea-release-action@v1
env:
NODE_OPTIONS: '--experimental-fetch'
with:
tag_name: latest # Explicitly target the tag we just moved
name: 'Latest Development Build'
body: 'This rolling release is automatically generated and always contains the newest code from the main branch.'
files: build/app/build/outputs/apk/release/*.apk
token: ${{ secrets.GITHUB_TOKEN }}