This commit is contained in:
Michael 2025-05-08 21:26:27 +03:00
parent 875e8ddfec
commit 5469ea416e

View file

@ -13,7 +13,11 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
# fetch-depth: 0
- name: Pull flutter tags
run: |
cd flutter && git fetch --tags --depth=1 && cd ..
- name: Set up JDK 21
uses: https://github.com/actions/setup-java@v3
@ -24,6 +28,9 @@ jobs:
- name: Setup Android SDK
uses: https://github.com/android-actions/setup-android@v3
- name: Flutter check
run: ./flutter/bin/flutter doctor -v
# 3. Создаем key.properties и загружаем ключ (секреты Forgejo)
- name: Setup signing keys
run: |
@ -48,14 +55,10 @@ jobs:
# .dart_tool
# key: ${{ runner.os }}-flutter-${{ hashFiles('pubspec.lock') }}
# 5. Восстанавливаем зависимости
# - name: Get packages
# run: ./flutter/bin/flutter pub get
# 6. Собираем подписанный APK
- name: Build signed APK
run: |
./flutter/bin/flutter build apk --release --split-per-abi
./flutter/bin/flutter build apk --release --split-per-abi -v
# 7. Сохраняем артефакты
- name: Upload artifacts