feature/ci-deploy #1
@@ -5,15 +5,18 @@ jobs:
 | 
				
			|||||||
    name: Build APK
 | 
					    name: Build APK
 | 
				
			||||||
    runs-on: k8s
 | 
					    runs-on: k8s
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    - name: Install prerequisites
 | 
					    - name: Install prerequisites
 | 
				
			||||||
      run: |
 | 
					      run: |
 | 
				
			||||||
        sudo apt-get update
 | 
					        sudo apt-get update
 | 
				
			||||||
        sudo apt-get install -y xz-utils unzip
 | 
					        sudo apt-get install -y xz-utils unzip
 | 
				
			||||||
    - uses: https://gitea.com/actions/checkout@v4
 | 
					    - uses: https://gitea.com/actions/checkout@v4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    - uses: https://github.com/actions/setup-java@v4
 | 
					    - uses: https://github.com/actions/setup-java@v4
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        java-version: '17'
 | 
					        java-version: '17'
 | 
				
			||||||
        distribution: 'zulu'
 | 
					        distribution: 'zulu'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    - uses: https://github.com/subosito/flutter-action@v2
 | 
					    - uses: https://github.com/subosito/flutter-action@v2
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        channel: stable
 | 
					        channel: stable
 | 
				
			||||||
@@ -21,12 +24,17 @@ jobs:
 | 
				
			|||||||
        cache: true
 | 
					        cache: true
 | 
				
			||||||
    - name: Setup Android SDK
 | 
					    - name: Setup Android SDK
 | 
				
			||||||
      uses: https://github.com/android-actions/setup-android@v3
 | 
					      uses: https://github.com/android-actions/setup-android@v3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    - run: flutter pub get
 | 
					    - run: flutter pub get
 | 
				
			||||||
    # - run: flutter test
 | 
					    # - run: flutter test
 | 
				
			||||||
    - run: flutter build apk --debug --split-per-abi
 | 
					    - run: flutter build apk --debug --split-per-abi
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    - name: Upload APK as artifact
 | 
					    - name: Release APK
 | 
				
			||||||
      uses: christopherhx/gitea-upload-artifact@v4
 | 
					      uses: https://gitea.com/akkuman/gitea-release-action@v1
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        name: app
 | 
					        files: build/app/outputs/flutter-apk/*.apk
 | 
				
			||||||
        path: build/app/outputs/flutter-apk/*.apk
 | 
					        tag: testing
 | 
				
			||||||
 | 
					        release_name: Testing release
 | 
				
			||||||
 | 
					        release_body: "This is a testing release."
 | 
				
			||||||
 | 
					        prerelease: true
 | 
				
			||||||
 | 
					        token: ${{ secrets.GITEA_TOKEN }}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user