mirror of
https://codeberg.org/mi6e4ka/openstore.git
synced 2025-06-29 04:30:01 +00:00
ci: upd
This commit is contained in:
parent
875e8ddfec
commit
5469ea416e
1 changed files with 9 additions and 6 deletions
|
@ -13,7 +13,11 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
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
|
- name: Set up JDK 21
|
||||||
uses: https://github.com/actions/setup-java@v3
|
uses: https://github.com/actions/setup-java@v3
|
||||||
|
@ -24,6 +28,9 @@ jobs:
|
||||||
- name: Setup Android SDK
|
- name: Setup Android SDK
|
||||||
uses: https://github.com/android-actions/setup-android@v3
|
uses: https://github.com/android-actions/setup-android@v3
|
||||||
|
|
||||||
|
- name: Flutter check
|
||||||
|
run: ./flutter/bin/flutter doctor -v
|
||||||
|
|
||||||
# 3. Создаем key.properties и загружаем ключ (секреты Forgejo)
|
# 3. Создаем key.properties и загружаем ключ (секреты Forgejo)
|
||||||
- name: Setup signing keys
|
- name: Setup signing keys
|
||||||
run: |
|
run: |
|
||||||
|
@ -48,14 +55,10 @@ jobs:
|
||||||
# .dart_tool
|
# .dart_tool
|
||||||
# key: ${{ runner.os }}-flutter-${{ hashFiles('pubspec.lock') }}
|
# key: ${{ runner.os }}-flutter-${{ hashFiles('pubspec.lock') }}
|
||||||
|
|
||||||
# 5. Восстанавливаем зависимости
|
|
||||||
# - name: Get packages
|
|
||||||
# run: ./flutter/bin/flutter pub get
|
|
||||||
|
|
||||||
# 6. Собираем подписанный APK
|
# 6. Собираем подписанный APK
|
||||||
- name: Build signed APK
|
- name: Build signed APK
|
||||||
run: |
|
run: |
|
||||||
./flutter/bin/flutter build apk --release --split-per-abi
|
./flutter/bin/flutter build apk --release --split-per-abi -v
|
||||||
|
|
||||||
# 7. Сохраняем артефакты
|
# 7. Сохраняем артефакты
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue