mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-04 03:39:37 -05:00 
			
		
		
		
	Added Android build singing info
This commit is contained in:
		
							parent
							
								
									bb7566426c
								
							
						
					
					
						commit
						46b2b6b558
					
				
							
								
								
									
										26
									
								
								.github/workflows/build_apk.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										26
									
								
								.github/workflows/build_apk.yml
									
									
									
									
										vendored
									
									
								
							@ -14,27 +14,23 @@ jobs:
 | 
			
		||||
    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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user