deploy on fdroid

This commit is contained in:
Alya Sirko 2022-08-31 16:32:08 +03:00
parent 954f4ecda9
commit 37c08a9db7

View file

@ -39,6 +39,9 @@ steps:
- ssh isolated "cd src && flutter build apk --release --split-per-abi"
# Fetch the release artifacts
- scp isolated:/var/lib/builder/src/build/app/outputs/flutter-apk/*-release.apk `pwd`
# Rename the artifacts in a more informative way
- rename app pro.kherel.selfprivacy *.apk && rename release "$DRONE_SEMVER" *.apk
- ls *.apk
environment:
SSH_PRIVATE_KEY:
from_secret: SSH_PRIVATE_KEY
@ -48,9 +51,8 @@ steps:
# Prepare SSH keys
- eval `ssh-agent -s`
- echo "$SSH_PRIVATE_KEY" | ssh-add -
# Rename the artifacts in a more informative way
- rename app pro.kherel.selfprivacy *.apk && rename release "$DRONE_SEMVER" *.apk
- ls *.apk
# Copy the artifacts to the F-Droid repository
- scp *.apk ci:/var/lib/fdroid/unsigned
environment:
SSH_PRIVATE_KEY:
from_secret: SSH_PRIVATE_KEY