diff --git a/.gitea/workflows/build-android.yaml b/.gitea/workflows/build-android.yaml index 5972680..4326093 100644 --- a/.gitea/workflows/build-android.yaml +++ b/.gitea/workflows/build-android.yaml @@ -17,8 +17,13 @@ jobs: with: channel: stable flutter-version: 3.19.0 + cache: true - run: flutter pub get # - run: flutter test - - name: Build - run: flutter build web - # dumps onto publish_dir: ./build/web + - run: flutter build apk --debug --split-per-abi + - name: Push APK to Releases + uses: https://gitea.com/actions/release-action@main + with: + files: |- + build/app/outputs/**.apk + api_key: '${{secrets.RELEASE_TOKEN}}' diff --git a/.gitea/workflows/build-web.yaml b/.gitea/workflows/build-web.yaml index 7e979e8..14c48a8 100644 --- a/.gitea/workflows/build-web.yaml +++ b/.gitea/workflows/build-web.yaml @@ -5,16 +5,17 @@ jobs: name: Build Web runs-on: k8s steps: + - name: Install prerequisites + run: | + sudo apt-get update + sudo apt-get install -y xz-utils + - uses: https://github.com/actions/checkout@v1 - uses: https://github.com/subosito/flutter-action@v2 with: channel: stable flutter-version: 3.19.0 + cache: true - run: flutter pub get # - run: flutter test - - run: flutter build apk --debug --split-per-abi - - name: Push APK to Releases - uses: https://github.com/ncipollo/release-action@v1 - with: - artifacts: "build/app/outputs/apk/debug/*.apk" - token: ${{ secrets.TOKEN }} \ No newline at end of file +