Перевод названий этапов в build.yml
Сборка мода / build (push) Successful in 7m31s

This commit is contained in:
2025-10-11 18:53:51 +03:00
parent 28c60aa7a3
commit 2fe61c1445
+11 -11
View File
@@ -1,4 +1,4 @@
name: Build mod
name: Сборка мода
on:
workflow_dispatch:
@@ -16,25 +16,25 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
- name: Download APK
- name: Скачивание APK
run: |
curl -L -o app.apk "https://mirror-dl.anixart-app.com/anixart-beta.apk"
- name: Ensure aapt is installed
- name: Проверка наличия aapt
run: |
if ! command -v aapt &> /dev/null; then
echo "aapt не найден, устанавливаем..."
sudo apt-get update && sudo apt-get install -y --no-install-recommends android-sdk-build-tools
fi
- name: Ensure pngquant is installed
- name: Проверка наличия pngquant
run: |
if ! command -v pngquant &> /dev/null; then
echo "pngquant не найден, устанавливаем..."
sudo apt-get update && sudo apt-get install -y --no-install-recommends pngquant
fi
- name: Export secrets
- name: Извлечение хранилища ключей
env:
KEYSTORE: ${{ secrets.KEYSTORE }}
KEYSTORE_PASS: ${{ secrets.KEYSTORE_PASS }}
@@ -43,7 +43,7 @@ jobs:
echo "$KEYSTORE" | base64 -d > keystore.jks
echo "$KEYSTORE_PASS" > keystore.pass
- name: Prepare to build APK
- name: Подготовка к модифицированию APK
id: build
run: |
mkdir original
@@ -51,25 +51,25 @@ jobs:
pip install -r ./requirements.txt --break-system-packages
python ./main.py init
- name: Build APK
- name: Пересборка APK
id: build
run: |
python ./main.py build -f
- name: Read title from report.log
- name: Чтение report.log
id: get_title
run: |
TITLE=$(head -n 1 modified/report.log)
tail -n +2 modified/report.log > modified/report.log.tmp
echo "title=${TITLE}" >> $GITHUB_OUTPUT
- name: Setup go
- name: Установка go
if: steps.build.outputs.BUILD_EXIT == '0'
uses: actions/setup-go@v4
with:
go-version: '>=1.20'
- name: Make release
- name: Создание релиза
if: steps.build.outputs.BUILD_EXIT == '0'
uses: https://gitea.com/actions/release-action@main
with:
@@ -78,5 +78,5 @@ jobs:
draft: true
api_key: '${{secrets.RELEASE_TOKEN}}'
files: |-
modified/**-mod.apk
modified/*-mod.apk
modified/report.log