ci(release): build the package once and check that build
CI / check (push) Successful in 2m40s

The release pipeline compiled the project twice: ./dev.sh build in the check
job, then makepkg in the release job. A single job now builds with makepkg and
runs go vet, the tests and the smoke test on that tree, so publishing starts
only after the shipped build passed.

CI skips version-only pushes, which package.yml already covers, and the release
fails early when RELEASE_TOKEN is missing instead of reporting a bogus 401. The
package name no longer keeps the ./ prefix from ls, which corrupted the asset
and X-Filename names.
This commit is contained in:
BlackAngelTV committed 2026-11-25 11:05:40 +01:00
1 parent f38246f71d
commit aa1fff96b4
4 files changed
+62 -44

No files matched your search

+6 -4
View File
@@ -310,10 +310,12 @@ c'est elle qui nomme le tag, la release et le paquet
vérifie l'ensemble, ainsi que `_kittyver` du `PKGBUILD` contre
`kitty/constants.py`, 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`.
`.gitea/workflows/package.yml`, qui compile le paquet une seule fois
(`makepkg`, seul build), lance lint, `go vet`, tests et smoke test sur cet
arbre, puis crée la release Gitea `v<version>` avec le paquet en pièce jointe
et l'envoie à `repo.laxacube.ch`. `.gitea/workflows/ci.yml` rejoue les mêmes
contrôles sur chaque PR et chaque push sur `main` qui ne modifie pas que
`version`.
Pour reconstruire la même version du fork (correctif de packaging), incrémentez
`pkgrel` dans `packaging/PKGBUILD` puis lancez le workflow à la main