ci: add Forgejo-specific workflows to main (operational config for tag-triggered releases) #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "maximus/ci/forgejo-workflows-on-main"
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?
Why this lands on main (carve-out from strict model A)
Forgejo Actions only triggers push/tag-push workflows from files on the default branch. The Mirus release pipeline tags
v*+mirus.*on the long-livedrelease/mirusbranch, but those tag pushes can't fire any workflow unless.forgejo/workflows/release.ymllives onmain. Verified empirically: tagv0.14.0+mirus.1pushed earlier today fired zero workflow runs.The carve-out is narrow:
.forgejo/workflows/is Forgejo-specific operational config. Upstream Gitea uses.gitea/workflows/, which we leave untouched. So this directory's existence onmainis not a divergence in upstream-tracked content.git diff upstream/main main -- ':!.forgejo/'stays empty..gitea/workflows/,cmd/,modules/, etc. — never.forgejo/.What's added
.forgejo/workflows/check.yml— shadows the upstream.gitea/workflows/test-pr.yml(which fails on our infra:runs-on: ubuntu-latest+services: gitea-in-docker). Runsclean → vet → buildonruns-on: self-hosted. Forgejo prefers.forgejo/workflows/over.gitea/workflows/, so the upstream YAML is untouched but ignored on our infra..forgejo/workflows/release.yml— triggers on tags matchingv*+mirus.*. Verifies the tag commit is reachable fromrelease/mirus, builds tea for linux/arm64 + linux/amd64, uploads tarballs + sha256 manifest as Forgejo Release assets. Uses the auto-providedGITHUB_TOKEN(no manual secret).Tag scheme (recap)
v<upstream>+mirus.<n>— full SemVer 2.0 build metadata. E.g.v0.14.0+mirus.1is the first Mirus build of upstream 0.14.0.Test plan
check.ymlalready proven onrelease/mirusPR #3 (CI run 1476 success).v0.14.0+mirus.1tag to triggerrelease.yml. Verify build for both arches and Release page lands at/public/tea/releases/tag/v0.14.0%2Bmirus.1.Refs
--delete-branchflag, redirected to PR #3 againstrelease/mirus)--delete-branchflag landed onrelease/mirus)