mirror of
https://github.com/gitnex-org/gitnex.git
synced 2026-03-11 17:34:09 -05:00
Fix CI (#1135)
Co-authored-by: qwerty287 <ndev@web.de> Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1135 Reviewed-by: M M Arif <mmarif@noreply.codeberg.org> Co-authored-by: qwerty287 <qwerty287@noreply.codeberg.org> Co-committed-by: qwerty287 <qwerty287@noreply.codeberg.org>
This commit is contained in:
@@ -13,10 +13,7 @@ pipeline:
|
||||
INSTANCE: "https://codeberg.org"
|
||||
KS_FILE: "gitnex_ci_keystore.jks"
|
||||
commands:
|
||||
- >
|
||||
KEYFILE=$(mktemp)
|
||||
curl -X GET "${INSTANCE}/api/v1/repos/${KS_REPO}/contents/${KS_FILE}?token=${BOT_TOKEN}" -H "accept: application/json" | sed 's|"content":"|#|g' | cut -d '#' -f 2 | cut -d '"' -f 1 | base64 -d > ${KEYFILE}
|
||||
apksigner sign -v --ks-pass pass:$KS_PASS --key-pass pass:$KEY_PASS --ks-key-alias GitNexBot --ks ${KEYFILE} --out signed.apk $(find . -name "*release*.apk")
|
||||
- ./scripts/sign-build.sh
|
||||
secrets: [ BOT_TOKEN, KS_PASS, KEY_PASS, KS_REPO ]
|
||||
when:
|
||||
event: [ push, tag ]
|
||||
|
||||
Reference in New Issue
Block a user