ci(release): publish the Arch package when the version changes
CI / check (push) Failing after 5s
Release / check (push) Failing after 4s
Release / release (push) Skipped

Releases were built and uploaded by hand, so the published package could
lag behind main and nothing checked the tree before it shipped. The new
version file drives a pipeline that lints, builds and tests the exact
commit, then creates the Gitea release and pushes the package to the
pacman repository.
This commit is contained in:
BlackAngelTV committed 2026-11-25 10:14:56 +01:00
1 parent afc53e370d
commit 7b64da8a38
9 files changed
+352 -4

No files matched your search

+19
View File
@@ -299,6 +299,25 @@ réaffecte `_branch`) :
_branch=feat/file-manager-panel
```
### Publication automatique
`version`, à la racine, est la source de vérité des releases : il doit rester
égal à `version` dans `kitty/constants.py` et à `pkgver` dans
`packaging/PKGBUILD` (`packaging/check-version.sh` vérifie les trois et échoue
sinon). Un push sur `main` qui modifie `version` déclenche
`.gitea/workflows/package.yml` : lint, build, tests, paquet `makepkg`, release
Gitea `v<version>` avec le paquet en pièce jointe, puis envoi à
`repo.laxacube.ch`. `.gitea/workflows/ci.yml` rejoue les mêmes contrôles sur
chaque PR et chaque push sur `main`.
Pour reconstruire la même version amont (correctif de packaging), incrémentez
`pkgrel` dans `packaging/PKGBUILD` puis lancez le workflow à la main
(*Actions → Release → Run workflow*) : le paquet `0.50.0-3` remplace alors le
`0.50.0-2`. Une nouvelle version demande `version`, `kitty/constants.py` et
`pkgver`, avec `pkgrel=1`. La publication vers `repo.laxacube.ch` utilise le
secret `REPO_TOKEN` du dépôt, la release Gitea le secret `RELEASE_TOKEN` ; sans
`REPO_TOKEN` la release est créée mais le dépôt pacman n'est pas mis à jour.
La publication dans un dépôt pacman (`repo-add`, configuration client,
automatisation) est détaillée dans `packaging/README.md`.