mirror of
https://github.com/immich-app/immich.git
synced 2024-12-28 22:51:59 +00:00
Added Android build singing info
This commit is contained in:
parent
bb7566426c
commit
46b2b6b558
1 changed files with 12 additions and 16 deletions
28
.github/workflows/build_apk.yml
vendored
28
.github/workflows/build_apk.yml
vendored
|
@ -13,28 +13,24 @@ jobs:
|
|||
working-directory: ./mobile
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
# Sign
|
||||
- uses: r0adkll/sign-android-release@v1
|
||||
name: Sign app APK
|
||||
# ID used to access action output
|
||||
id: sign_app
|
||||
with:
|
||||
releaseDirectory: mobile/build/app/outputs/apk/release
|
||||
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
|
||||
alias: ${{ secrets.ALIAS }}
|
||||
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
|
||||
keyPassword: ${{ secrets.KEY_PASSWORD }}
|
||||
env:
|
||||
# override default build-tools version (29.0.3) -- optional
|
||||
BUILD_TOOLS_VERSION: "30.0.2"
|
||||
|
||||
|
||||
# Build
|
||||
- uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: "stable"
|
||||
cache: true
|
||||
cache-key: flutter2.10 # optional, change this to force refresh cache
|
||||
env:
|
||||
KEY_JKS: ${{ secrets.SIGNING_KEY }}
|
||||
SIGNING_KEY_ALIAS: ${{ secrets.ALIAS }}
|
||||
SIGNING_KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
|
||||
SIGNING_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
|
||||
- name: Decode Keystore
|
||||
run: |
|
||||
echo "${{secrets.SIGNING_KEY}}" > release.keystore.asc
|
||||
gpg -d --passphrase "${{secrets.KEY_STORE_PASSWORD}}" - - batch release.keystore.asc > android/key.jks
|
||||
- name: Create key.properties
|
||||
run: touch mobile/android/key.properties echo "storePassword=<storePassword> keyPassword=<keyPassword> keyAlias=<keyAlias> storeFile=../key.jks" > mobile/android/key.properties
|
||||
- run: flutter --version
|
||||
- run: flutter pub get
|
||||
- run: flutter build apk
|
||||
|
|
Loading…
Reference in a new issue