Files
sheetless/.gitea/workflows/release-latest-android.yml
julian 22aa22ce76
Build and deploy the latest docker container / deploy (push) Successful in 51s
Build and release the latest android apk / rolling-release-apk (push) Successful in 4m53s
Build and release a versioned android apk / release-apk (push) Successful in 4m31s
ci: correct apk location
2026-06-12 18:24:37 +02:00

38 lines
1.1 KiB
YAML

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/outputs/flutter-apk/*.apk
token: ${{ secrets.GITHUB_TOKEN }}