Files
mobile/.github/workflows/upload_fdroid_github.yml
julien4215 34a23f7062 Update the Flutter version in the F-Droid Github job so that it is built (#2486)
with the same version as the one on Gitlab.
2026-01-09 10:20:29 +01:00

42 lines
1.2 KiB
YAML

name: Upload the F-Droid APK to Github
# Enable manual run
on: workflow_dispatch
# Declare default permissions as read only.
permissions: read-all
jobs:
github-upload:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/fdroid' # only runs if on the 'fdroid' branch
steps:
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
java-version: 17
distribution: temurin
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: 3.38.3
- run: flutter doctor -v
- name: Checkout mobile code
uses: actions/checkout@v5
- name: Install dependencies
run: flutter pub get
- name: Code generation
run: dart run build_runner build
- name: Build the APK
run: flutter build apk --dart-define=cronetHttpNoPlay=true --dart-define=LICHESS_HOST=lichess.org --dart-define=LICHESS_WS_HOST=socket.lichess.org --dart-define=LICHESS_WS_SECRET=wG1OLhUR3CSXdDybqrtIW227QGrtiM3d
- name: Upload the APK
uses: actions/upload-artifact@v4
with:
path: build/app/outputs/flutter-apk/app-release.apk