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
|
||||
|
||||
@@ -10,8 +10,8 @@ android {
|
||||
applicationId "com.anabasis.vkchatmanager"
|
||||
minSdk 26
|
||||
targetSdk 36
|
||||
versionCode 4
|
||||
versionName "1.1.2"
|
||||
versionCode 5
|
||||
versionName "1.1.3"
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
||||
10
fdroid/config.yml
Normal file
10
fdroid/config.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
repo_name: Anabasis F-Droid Repo
|
||||
repo_url: https://git.daemonlord.ru/fdroid/repo
|
||||
|
||||
keystore: ""
|
||||
keystorepass: ""
|
||||
keyalias: ""
|
||||
keypass: ""
|
||||
|
||||
repo_icon: icon.png
|
||||
archive_older: 0
|
||||
BIN
fdroid/icon.png
Normal file
BIN
fdroid/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.5 KiB |
Reference in New Issue
Block a user