Skip to content

Update build.yml

Update build.yml #19

Workflow file for this run

name: Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build_android:
runs-on: ubuntu-latest
container:
# trying to be close to the f-droid build to detect failures early
image: registry.gitlab.com/fdroid/fdroidserver:buildserver-bullseye
env:
ANDROID_HOME: /opt/android-sdk
steps:
- name: apt update
run: sudo apt update
- name: Install jq
run: sudo apt install jq
- name: Install xz-utils
run: sudo apt install xz-utils
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.10.5'
channel: 'stable'
cache: true
cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash

Check failure on line 35 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 35
- run: git config --global --add safe.directory ${{ env.FLUTTER_ROOT }}
- run: flutter config --no-analytics
- run: flutter --version
- name: Check out repository code
uses: actions/checkout@v3
- name: Build Android APK
run: flutter build apk
- name: Upload Android apk
uses: actions/upload-artifact@v3
with:
name: Android apk
path: ./build/app/outputs/flutter-apk/app-release.apk