aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMenny Even Danan <menny@evendanan.net>2020-03-16 21:52:12 +0000
committerMenny Even Danan <menny@evendanan.net>2020-03-16 21:52:12 +0000
commit6c6b0894f8cdcbd46c482295664c29b20c038ecf (patch)
treefb74eca3c1e9ce03c2466fa8bbc241d322273336 /.github
parenta0a1810607293e44170aa9833478a5e498612f63 (diff)
downloadAnySoftKeyboard-6c6b0894f8cdcbd46c482295664c29b20c038ecf.tar.gz
AnySoftKeyboard-6c6b0894f8cdcbd46c482295664c29b20c038ecf.tar.bz2
taking publish json url instead of contents
Diffstat (limited to '.github')
-rw-r--r--.github/actions/deploy/action.yml4
-rwxr-xr-x.github/actions/deploy/deploy.sh3
-rw-r--r--.github/workflows/deploy.yml2
3 files changed, 5 insertions, 4 deletions
diff --git a/.github/actions/deploy/action.yml b/.github/actions/deploy/action.yml
index 55dfbb221..3e52fb21a 100644
--- a/.github/actions/deploy/action.yml
+++ b/.github/actions/deploy/action.yml
@@ -25,8 +25,8 @@ inputs:
default: ""
description: "APK signing keystore default key password"
required: true
- publish_service_account_creds_json:
- description: "contents of the json certs file"
+ publish_service_account_creds_json_url:
+ description: "url to the json certs file"
default: ""
required: true
runs:
diff --git a/.github/actions/deploy/deploy.sh b/.github/actions/deploy/deploy.sh
index b6cb7e749..40d5eef19 100755
--- a/.github/actions/deploy/deploy.sh
+++ b/.github/actions/deploy/deploy.sh
@@ -12,7 +12,7 @@ export KEY_STORE_FILE_PASSWORD="${1}"
shift
export KEY_STORE_FILE_DEFAULT_ALIAS_PASSWORD="${1}"
shift
-echo "${1}" > /tmp/apk_upload_key.json
+PUBLISH_JSON_URL="${1}"
shift
function deployProcessFromEnvironmentName() {
@@ -48,6 +48,7 @@ if [[ -z "${KEYSTORE_FILE_URL}" ]]; then
fi
wget --tries=5 --waitretry=5 "${KEYSTORE_FILE_URL}" -q -O /tmp/anysoftkeyboard.keystore
+wget --tries=5 --waitretry=5 "${PUBLISH_JSON_URL}" -q -O /tmp/apk_upload_key.json
stat /tmp/anysoftkeyboard.keystore
stat /tmp/apk_upload_key.json
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 8becd5cbb..ce69139c5 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -38,7 +38,7 @@ jobs:
keystore_url: ${{ secrets.ANYSOFTKEYBOARD_KEYSTORE_URL }}
keystore_password: ${{ secrets.ANYSOFTKEYBOARD_KEYSTORE_PASSWORD }}
keystore_key_password: ${{ secrets.ANYSOFTKEYBOARD_KEYSTORE_KEY_PASSWORD }}
- publish_service_account_creds_json: ${{ secrets.PUBLISH_CERT_JSON_STRING }}
+ publish_service_account_creds_json_url: ${{ secrets.PUBLISH_CERT_JSON_URL }}
api_user: ${{ secrets.BOT_MASTER_RW_GITHUB_USERNAME }}
api_token: ${{ secrets.BOT_MASTER_RW_GITHUB_TOKEN }}
- name: status-success