anyway/.gitea/workflows/frontend_build-android.yaml
Remy Moll cb33f315a0
Some checks failed
Build web / Build Web (pull_request) Has been cancelled
Build and release APK / Build APK (pull_request) Has been cancelled
Build and push docker image / Build (pull_request) Failing after 1m42s
final building cleanup
2024-05-25 14:19:57 +02:00

58 lines
1.3 KiB
YAML

on:
pull_request:
branches:
- main
paths:
- frontend/**
name: Build and release APK
jobs:
build:
name: Build APK
runs-on: ubuntu-latest
steps:
- name: Install prerequisites
run: |
sudo apt-get update
sudo apt-get install -y xz-utils unzip
- uses: https://gitea.com/actions/checkout@v4
- uses: https://github.com/actions/setup-java@v4
with:
java-version: '17'
distribution: 'zulu'
- uses: https://github.com/subosito/flutter-action@v2
with:
channel: stable
flutter-version: 3.19.6
cache: true
- name: Setup Android SDK
uses: https://github.com/android-actions/setup-android@v3
- run: flutter pub get
working-directory: ./frontend
- run: flutter build apk --debug --split-per-abi
working-directory: ./frontend
- name: Release APK
uses: https://gitea.com/akkuman/gitea-release-action@v1
with:
files: ./frontendbuild/app/outputs/flutter-apk/*.apk
name: Testing release
release_name: testing
tag: testing
tag_name: testing
release_body: "This is a testing release."
prerelease: true
token: ${{ secrets.GITEA_TOKEN }}
env:
NODE_OPTIONS: '--experimental-fetch'