mirror of
https://github.com/lichess-org/mobile.git
synced 2026-05-26 13:50:52 +00:00
34a23f7062
with the same version as the one on Gitlab.
42 lines
1.2 KiB
YAML
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
|
|
|