mirror of
https://github.com/PaulWoitaschek/Voice.git
synced 2026-03-13 08:02:45 +08:00
* 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.
19 lines
406 B
Bash
Executable File
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"
|