1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

Droid 66 CI/CD | Integrate distribution of debug nightly builds for testing into our CI pipeline (#2443)

This commit is contained in:
Evgenii Kozlov 2022-07-28 10:58:19 +03:00 committed by GitHub
parent cb85ff786d
commit 0056dae8a7
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 131 additions and 6 deletions

View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Delete debug service account key
rm -f scripts/distribution/anytype-debug-service-account-key.json

View file

@ -0,0 +1,14 @@
#!/usr/bin/env bash
decrypt() {
PASSPHRASE=$1
INPUT=$2
OUTPUT=$3
gpg --quiet --batch --yes --decrypt --passphrase="$PASSPHRASE" --output $OUTPUT $INPUT
}
if [[ ! -z "$ENCRYPT_KEY" ]]; then
decrypt ${ENCRYPT_KEY} scripts/distribution/anytype-debug-service-account-key.gpg scripts/distribution/anytype-debug-service-account-key.json
else
echo "ENCRYPT_KEY is empty"
fi

View file

@ -0,0 +1,14 @@
#!/usr/bin/env bash
encrypt() {
PASSPHRASE=$1
INPUT=$2
OUTPUT=$3
gpg --batch --yes --passphrase="$PASSPHRASE" --cipher-algo AES256 --symmetric --output $OUTPUT $INPUT
}
if [[ ! -z "$ENCRYPT_KEY" ]]; then
encrypt ${ENCRYPT_KEY} scripts/distribution/anytype-debug-service-account-key.json scripts/distribution/anytype-debug-service-account-key.gpg
else
echo "ENCRYPT_KEY is empty"
fi