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