deploy on fdroid

pull/110/head
Alya Sirko 2022-08-31 16:32:08 +03:00
parent 954f4ecda9
commit 37c08a9db7
1 changed files with 5 additions and 3 deletions

View File

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