Files
sheetless/.gitea/workflows/release-latest-android.yml
T
julian 41505677d5
Build and deploy the latest docker container / deploy (push) Successful in 1m13s
Build and release the latest android apk / rolling-release-apk (push) Successful in 5m25s
ci: fix key properties filename
2026-07-09 18:45:35 +02:00

52 lines
1.7 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: Decode keystore
run: echo "$KEYSTORE_BASE64" | base64 --decode > android/app/keystore.jks
env:
KEYSTORE_BASE64: ${{ secrets.FRAJUL_KEYSTORE_BASE64 }}
- name: Create keystore.properties
run: |
cat <<EOF > android/key.properties
storeFile=keystore.jks
storePassword=${{ secrets.FRAJUL_KEYSTORE_PASSWORD }}
keyAlias=${{ secrets.FRAJUL_KEYSTORE_ALIAS }}
keyPassword=${{ secrets.FRAJUL_KEYSTORE_KEY_PASSWORD }}
EOF
- 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 }}