mirror of
https://github.com/wger-project/flutter.git
synced 2026-11-30 09:42:50 +01:00
This workflow is not manually triggered and can create automatically the appropriate tag. The build number is not increase to the next multiple of ten, to stay in sync with the iOS releases, which seem to cause more trouble and often need reuploads. The individual steps have been moved out to their own files, for better readability. We also now build the app for all supported platforms.
25 lines
788 B
Bash
Executable File
25 lines
788 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# --batch to prevent interactive command
|
|
# --yes to assume "yes" for questions
|
|
|
|
# To encrypt a new version of the keys:
|
|
# gpg -c filename.json
|
|
|
|
if [ -n "$DECRYPTKEY_PLAYSTORE" ]; then
|
|
echo "decrypting playstore API keys"
|
|
gpg --quiet --batch --yes --decrypt --passphrase="$DECRYPTKEY_PLAYSTORE" \
|
|
--output ./playstore.json playstore.json.gpg
|
|
fi
|
|
|
|
if [ -n "$DECRYPTKEY_PROPERTIES" ]; then
|
|
echo "decrypting key.properties"
|
|
gpg --quiet --batch --yes --decrypt --passphrase="$DECRYPTKEY_PROPERTIES" \
|
|
--output ./key.properties key.properties.gpg
|
|
fi
|
|
|
|
if [ -n "$DECRYPTKEY_PLAYSTORE_SIGNING_KEY" ]; then
|
|
echo "decrypting playstore signing keys"
|
|
gpg --quiet --batch --yes --decrypt --passphrase="$DECRYPTKEY_PLAYSTORE_SIGNING_KEY" \
|
|
--output ./keys.jks keys.jks.gpg
|
|
fi |