ci(forgejo): publish release with PostIt APK on tag push #22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/forgejo-release-page"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ajoute
.forgejo/workflows/release.ymlqui se déclenche sur push de tag (ou workflow_dispatch) et publie une release Forgejo avec l'APK PostIt comme asset.Jobs :
validate-release: parse le tag, applique la règle de parité du patch (pair=stable / impair=preview / suffixe=unstable), fail-fast sur unstable sauf opt-inforce_unstable=true, vérifie la cohérence avec une section## [TAG] - <channel>dans CHANGELOG.md. Écrit le body dans un artifact.release: dépend de validate-release. Construit l'APK via le Dockerfile (--target build-env, RID android-arm64), extrait l'APK signé, recalcule le channel depuis le tag, publie viarasterstate/forgejo-release-action@v1sur l'API Forgejo avec l'APK en asset.Auth :
${{ secrets.RELEASE_TOKEN }}(PAT Forgejo, scopewrite:repository). À créer côté UI Forgejo avant le premier run.Comportement :
1.0.6→ release stable, marquée Latest.1.0.7→ preview (prerelease=true).1.0.7-rc1→ unstable, fail-fast saufforce_unstable=true(workflow_dispatch).Cible :
release/1.0.6pour couvrir la release actuelle. À merger aussi versmainaprès (PR séparée ou rebase).Adds .forgejo/workflows/release.yml: triggered by tag push or workflow_dispatch, it validates the tag/CHANGELOG parity (stable / preview / unstable), builds the PostIt Android APK via the existing Dockerfile (--target build-env), and publishes a Forgejo release with the APK as an asset via rasterstate/forgejo-release-action@v1. Mirrors the validate-release logic of .github/workflows/docker-publish-android.yml so the two channels (Forgejo source-of-truth + GitHub mirror) stay consistent. Authentication uses ${{ secrets.RELEASE_TOKEN }}, a Forgejo PAT scoped to write:repository configured in the repository's Actions secrets.