android:sign:
    image: ubuntu:latest
    stage: deploy
    before_script:
        - apt-get update -qq
        - apt-get install -y zipalign apksigner
    script:
        - mkdir build
        - zipalign -p -f -v 4 .kde-ci-packages/glaxnimate_mobile-arm64-v8a.apk build/glaxnimate-arm64-v8a.apk
        - base64 -d "$APK_KEYSTORE" >key.keystore
        - apksigner sign -verbose -ks key.keystore --ks-pass env:APK_KS_PASSWORD build/glaxnimate-arm64-v8a.apk
        - rm key.keystore
        - sha1sum build/glaxnimate-arm64-v8a.apk >build/checksum.txt
    artifacts:
        paths:
            - build
    when: always
    only:
        - master
        - release
        - tags
        - android
    needs: ["craft_android_arm64"]
