Some checks failed
Test code / Test code (push) Has been cancelled
Reviewed-on: remoll/fast-network-navigation#2
52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
name: Build and release APK
|
|
|
|
jobs:
|
|
build:
|
|
name: Build APK
|
|
runs-on: k8s
|
|
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
|
|
|
|
- run: flutter build apk --debug --split-per-abi
|
|
|
|
- name: Release APK
|
|
uses: https://gitea.com/akkuman/gitea-release-action@v1
|
|
with:
|
|
files: build/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'
|