This commit is contained in:
@@ -107,3 +107,36 @@ jobs:
|
||||
Android release ${{ steps.stop.outputs.version }}
|
||||
files: |
|
||||
app/build/outputs/apk/release/*.apk
|
||||
|
||||
- name: Prepare F-Droid Repo
|
||||
if: steps.stop.outputs.continue == 'true'
|
||||
run: |
|
||||
mkdir -p /tmp/fdroid-repo
|
||||
cp app/build/outputs/apk/release/*.apk /tmp/fdroid-repo/
|
||||
cp fdroid/config.yml /tmp/fdroid-repo/config.yml
|
||||
cp fdroid/icon.png /tmp/fdroid-repo/icon.png
|
||||
|
||||
# -----------------------------
|
||||
# 9. Обновляем F-Droid репозиторий
|
||||
# -----------------------------
|
||||
- name: Update F-Droid Repo
|
||||
if: steps.stop.outputs.continue == 'true'
|
||||
run: |
|
||||
docker run --rm \
|
||||
-v /tmp/fdroid-repo:/fdroid \
|
||||
-e FDROID_CONFIG_FILE=/fdroid/config.yml \
|
||||
registry.gitlab.com/fdroid/docker-executable-fdroidserver:latest \
|
||||
sh -c "fdroid update && fdroid deploy"
|
||||
|
||||
# -----------------------------
|
||||
# 10. Пушим изменения в F-Droid репо
|
||||
# -----------------------------
|
||||
- name: Commit & Push to F-Droid Repo
|
||||
if: steps.stop.outputs.continue == 'true'
|
||||
run: |
|
||||
cd /tmp/fdroid-repo
|
||||
git init
|
||||
git remote add origin https://git.daemonlord.ru/fdroid/repo.git
|
||||
git add .
|
||||
git commit -m "Update APKs for ${{ steps.version.outputs.version }}"
|
||||
git push -f origin master
|
||||
|
||||
Reference in New Issue
Block a user