mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	Added work flow to build APK on push to master
This commit is contained in:
		
							
								
								
									
										29
									
								
								.github/workflows/build_apk.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								.github/workflows/build_apk.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,29 @@
 | 
				
			|||||||
 | 
					name: Build APK Android
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  workflow_dispatch:
 | 
				
			||||||
 | 
					  push:
 | 
				
			||||||
 | 
					    branches: [main]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  build:
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      # Build
 | 
				
			||||||
 | 
					      - uses: subosito/flutter-action@v2
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          channel: "stable"
 | 
				
			||||||
 | 
					          cache: true
 | 
				
			||||||
 | 
					          cache-key: flutter2.10 # optional, change this to force refresh cache
 | 
				
			||||||
 | 
					      - run: flutter --version
 | 
				
			||||||
 | 
					      - run: flutter pub get
 | 
				
			||||||
 | 
					      - run: flutter build apk
 | 
				
			||||||
 | 
					      - run: flutter build appbundle
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      # Upload Artifact
 | 
				
			||||||
 | 
					      - uses: actions/upload-artifact@v2
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          name: release-apk
 | 
				
			||||||
 | 
					          path: build/app/outputs/apk/release/app-release.apk
 | 
				
			||||||
		Reference in New Issue
	
	Block a user