12 Commits
Author SHA1 Message Date
Sanders b8ee8be9eb Create release tags via POST /tags — Gitea has no POST /git/refs
build-apk / build (push) Successful in 13m7s
POST /git/refs returns 405 with an empty body on Gitea, which crashed
the tag step (json decode of ''). Use the tags API:
POST /repos/{owner}/{repo}/tags with {tag_name, target} (201), and
409 'tag already exists' is handled gracefully.
2026-08-12 01:17:31 +03:00
Sanders ec0a134b5a Run workflow steps under bash (pipefail is sh-incompatible)
build-apk / build (push) Failing after 9m5s
Gitea Actions default shell is sh (dash), which rejects 'set -o pipefail'.
Add defaults.run.shell: bash so the version/release steps work.
2026-08-12 01:03:15 +03:00
Sanders 1c19f5a8e4 Only upload artifacts on master runs
build-apk / build (push) Failing after 3m6s
2026-08-12 01:01:59 +03:00
Sanders 468349e90c Auto-increment version and auto-create release on each master build
build-apk / build (push) Failing after 3m8s
- Compute next vX.Y.Z from the latest tag (patch bump) via Gitea API
- Pass it to flutter build via --build-name/--build-number so the APK
  versionName/versionCode always increase (installs update in place)
- Auto-create tag + Gitea release + upload both APKs on master runs only
- Verbose logging: version computed, built APK sizes, tag/release/asset results
- Drop the tag trigger: the auto-created tag would otherwise re-trigger the
  workflow (double builds / release conflicts)
2026-08-12 00:57:05 +03:00
Sanders 6f7ae57dd7 Only create releases for tags pointing at master
build-apk / build (push) Canceled after 4m12s
Guard the Create Gitea release step: fetch origin/master and compare with
the tagged commit; if the tag is not on master's tip, skip release creation
instead of publishing a release for a feature/dev branch.
2026-08-12 00:53:22 +03:00
Sanders 4e18000773 Use $GITHUB_TOKEN consistently in release curl calls
build-apk / build (push) Canceled after 2m1s
2026-08-12 00:51:40 +03:00
Sanders 269f17ce66 Use upload-artifact@v3 — v4 not supported by Gitea Actions
build-apk / build (push) Successful in 11m37s
upload-artifact@v4 relies on the new @actions/artifact 2.x protocol and
fails on Gitea with GHESNotSupportedError. v3 uses the older artifact
API that Gitea implements.
2026-08-12 00:37:51 +03:00
Sanders b2c17ffaae ci: integration tests with DeepSeek key, release APK signing, auto-release on tags
build-apk / build (push) Failing after 11m34s
2026-08-11 23:48:02 +03:00
Sanders 5ed9cbfdde ci: use floating stable tag for flutter image
build-apk / build (push) Canceled after 6m1s
2026-08-11 23:42:31 +03:00
Sanders a3631bb2cc ci: bump flutter image to 3.44.0 (Dart 3.12+ for sdk ^3.12.0)
build-apk / build (push) Canceled after 1m6s
2026-08-11 23:41:39 +03:00
Sanders 5005b4d991 ci: install node in job container for JS actions (checkout/upload-artifact)
build-apk / build (push) Failing after 56s
2026-08-11 23:39:31 +03:00
Sanders eddbe19e2e ci: add Gitea Actions workflow to build debug APK on push
build-apk / build (push) Failing after 18m36s
2026-08-11 23:17:47 +03:00