From 954f4ecda966f3257f1d7a6ac4f49d9b8f6f3855 Mon Sep 17 00:00:00 2001 From: Alya Sirko Date: Wed, 31 Aug 2022 15:55:04 +0300 Subject: [PATCH] deploy on fdroid --- .drone.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5a3f93ec..edb8dc17 100644 --- a/.drone.yml +++ b/.drone.yml @@ -24,10 +24,6 @@ kind: pipeline type: exec name: Release -environment: - SSH_PRIVATE_KEY: - from_secret: SSH_PRIVATE_KEY - steps: - name: Build Release Artifacts commands: @@ -43,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` + environment: + SSH_PRIVATE_KEY: + from_secret: SSH_PRIVATE_KEY - name: Deploy on F-Droid Repository commands: @@ -52,6 +51,9 @@ steps: # 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 trigger: event: