deploy on fdroid

This commit is contained in:
Alya Sirko 2022-08-31 15:55:04 +03:00
parent 1c9854e83b
commit 954f4ecda9

View file

@ -24,10 +24,6 @@ kind: pipeline
type: exec type: exec
name: Release name: Release
environment:
SSH_PRIVATE_KEY:
from_secret: SSH_PRIVATE_KEY
steps: steps:
- name: Build Release Artifacts - name: Build Release Artifacts
commands: commands:
@ -43,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`
environment:
SSH_PRIVATE_KEY:
from_secret: SSH_PRIVATE_KEY
- name: Deploy on F-Droid Repository - name: Deploy on F-Droid Repository
commands: commands:
@ -52,6 +51,9 @@ steps:
# Rename the artifacts in a more informative way # Rename the artifacts in a more informative way
- rename app pro.kherel.selfprivacy *.apk && rename release "$DRONE_SEMVER" *.apk - rename app pro.kherel.selfprivacy *.apk && rename release "$DRONE_SEMVER" *.apk
- ls *.apk - ls *.apk
environment:
SSH_PRIVATE_KEY:
from_secret: SSH_PRIVATE_KEY
trigger: trigger:
event: event: