Files
Voice/scripts/ci_setup_play_access.sh
Paul Woitaschek 523398441d Restructure the Release pipeline and handle promotions from Github (#3089)
* Allow to promote the build from google play

* Remove bundle exec

* Split build and upload

* Use the artifacts dir

* Use copy artifacts, only release a single apk

* Split github build and draft

* Disable lint on the release builds

* Don't specify the version of download-artifact

* Specify v5

* Specify the correct artifacts path

* Specify the java type

* Try omitting the path

* Also attempt without the artifacts dir

* Fix the file check

* Fix promotion, skip meta uploading

* Add tests before releasing

* Reorder the jobs

* Don't use a draft for the github release.
2025-09-10 18:36:31 +00:00

19 lines
406 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
decode_env_to_file() {
local env_var="${1}"
local dest_file="${2}"
if [[ -z "${!env_var:-}" ]]; then
echo "Error: Environment variable ${env_var} is not set or empty." >&2
exit 1
fi
echo "${!env_var}" | base64 --decode >"${dest_file}"
echo "Success: Written to ${dest_file}"
}
decode_env_to_file "PLAY_SERVICE_ACCOUNT" "app/play_service_account.json"