Releasing

Changes are released through the same basic pipeline at every stage:

flowchart LR
    A[Build] --> B[Test]
    B --> C[Publish]

Releasing a Change#

  1. Build and test the change locally.

    The local build process should exercise the same logic used by CI/CD. If it fails locally, fix it before raising a pull request.

  2. Raise a pull request.

  3. Gitea CI/CD runs the repository pipeline.

    flowchart LR
        A[Pull Request] --> B[Build]
        B --> C[Test]
        C --> D[Publish to Edge / Staging]

    The pull request pipeline should validate as much of the release as possible before merge.

    If the repository produces artifacts, they are published as CI, edge, or staging artifacts.

    If the repository contains infrastructure, it lives under env/ and should be validated as part of this process.

  4. Review and merge the pull request.

  5. The mainline pipeline runs the production release.

flowchart LR
    A[Merge] --> B[Build]
    B --> C[Test]
    C --> D[Publish Production Artifacts]
    D --> E[Deploy to Production]

Deployment only applies where the repository has something to deploy.

For some repositories, publishing the artifact is the release. For others, the published output continues into a production deployment.

Summary#

flowchart TD
    A[Develop Locally] --> B[Build + Test]
    B --> C[Pull Request]
    C --> D[Build + Test + Publish Edge]
    D --> E[Merge]
    E --> F[Build + Test + Publish Production]
    F --> G[Deploy, if applicable]

The intent is to shift validation left: the pull request should exercise as much of the real release process as practical, while merge promotes the change through the production path.