Build APK / build (push) Successful in 5m42s
actions/upload-artifact@v4 speaks a newer artifact backend protocol that Gitea Actions doesn't implement yet, failing with GHESNotSupportedError even though this isn't GHES. v3 uses the older protocol Gitea does support. The build itself (flutter analyze + flutter build apk --release) already succeeded before this step. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
55 lines
1.6 KiB
YAML
55 lines
1.6 KiB
YAML
name: Build APK
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: temurin
|
|
java-version: "17"
|
|
|
|
- name: Set up Flutter
|
|
uses: subosito/flutter-action@v2
|
|
with:
|
|
channel: stable
|
|
|
|
- name: Set up Android SDK
|
|
uses: android-actions/setup-android@v3
|
|
with:
|
|
# Google removed the legacy standalone "tools" package from the
|
|
# SDK repository (~Sep 2026); the action's own default packages
|
|
# list ("tools platform-tools") now makes its internal sdkmanager
|
|
# call fail for everyone. platform-tools is all this step needs
|
|
# to install itself - flutter build fetches whatever
|
|
# platform/build-tools versions it actually needs on its own.
|
|
packages: "platform-tools"
|
|
|
|
- name: Install dependencies
|
|
run: flutter pub get
|
|
|
|
- name: Analyze
|
|
run: flutter analyze
|
|
|
|
- name: Build release APK
|
|
run: flutter build apk --release
|
|
|
|
- name: Upload APK
|
|
# v4 speaks a newer artifact protocol (Azure Blob-style) that
|
|
# Gitea Actions doesn't implement yet - it errors as
|
|
# "GHESNotSupportedError" even though this isn't GHES. v3 uses the
|
|
# older protocol Gitea does support.
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: app-release-apk
|
|
path: build/app/outputs/flutter-apk/app-release.apk
|