Move encrypting key to before deploy

With PRs from forked repositories the release key can't be decrypted
because the secured variables are hidden.
This commit is contained in:
Jannis Mattheis
2018-11-09 17:18:58 +01:00
parent 97ab5a6871
commit fd97ba2bb4

View File

@@ -29,13 +29,13 @@ android:
before_install:
- yes | sdkmanager "platforms;android-28"
- openssl aes-256-cbc -K $encrypted_f6e0f94759d3_key -iv $encrypted_f6e0f94759d3_iv
-in gotify-release-key.jks.enc -out gotify-release-key.jks -d
script:
- ./gradlew clean build --stacktrace
before_deploy:
- openssl aes-256-cbc -K $encrypted_f6e0f94759d3_key -iv $encrypted_f6e0f94759d3_iv
-in gotify-release-key.jks.enc -out gotify-release-key.jks -d
- cp $TRAVIS_BUILD_DIR/gotify-release-key.jks $HOME
- cd app/build/outputs/apk/release
- jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore $HOME/gotify-release-key.jks