Mindfree Automated Delivery System
| # | Project | Branch | Commit | Deployed at (UTC) |
|---|---|---|---|---|
| 1 | mindfree-hub-api | main | d4c4ce0 | 2026-09-30 02:26:35Z |
On GitHub, click "Use this template" → "Create a new repository". Set the owner to Mindfree-2 and make the repo private — the self-hosted runner only works on private repositories.
Every push to any branch triggers the CI/CD pipeline automatically within ~2 minutes. Each branch gets its own isolated URL:
main → {project}.mindfree.infostaging → {project}.staging.mindfree.info{branch}.{project}.dev.mindfree.infoAdd controllers under src/Api/Controllers/. Decorate them with
[ApiController] and [Route("[controller]")].
Register services and middleware in Program.cs.
Models go in a Models/ folder you create.
Go to your repo → Settings → Secrets and variables → Actions.
Secrets are injected as environment variables at deploy time and available to your
app at runtime via Environment.GetEnvironmentVariable().
| Route | Description |
|---|---|
GET / | This welcome page with deployment info |
GET /health | Health check — returns ok, used by the deploy script to confirm the app is up |
GET /info | Deployment info as JSON — { project, branch, commit } |
GET /swagger | Swagger UI — available in Development environment only |
GET /test-secret | Returns TEST_SECRET env var — remove before production |
GET /test-storage | Appends a line to /data/test.txt and returns contents — remove before production |
dotnet-api-template/ └── src/Api/ ├── Controllers/ │ └── InfoController.cs ← example controller, add yours here ├── Program.cs ← services, middleware & minimal-API routes ├── Api.csproj ← NuGet dependencies └── appsettings.json ← app configuration