feat: display deployment version in admin footer
Validators (Pushes and Pull Requests) / UI & Storage Validation (push) Failing after 12s
Validators (Pushes and Pull Requests) / Database & Schema Validation (push) Successful in 12s
Validators (Pushes and Pull Requests) / Notify PR Results (push) Has been cancelled
Workflow Lint & Validation / Lint All Workflow Files (push) Has been cancelled
Validators (Pushes and Pull Requests) / Core Validators & Database Setup (push) Failing after 19s
Validators (Pushes and Pull Requests) / WBS & Audit Validations (push) Has been skipped
Validators (Pushes and Pull Requests) / .NET Contracts (push) Has been skipped
Validators (Pushes and Pull Requests) / Calibration & Performance (push) Has been skipped
Validators (Pushes and Pull Requests) / Operational Report & Decision Packet (push) Has been skipped
Validators (Pushes and Pull Requests) / CI Workflow Lint (push) Has been cancelled
Validators (Pushes and Pull Requests) / Security & Secrets (push) Has been cancelled
Workflow Lint & Validation / Notify Lint Results (push) Has been cancelled
Workflow Lint & Validation / Validate Secrets Contract (push) Has been cancelled

- Add AppVersion to appsettings.Production.json in prepare-release.yml
- Display version in _AdminLayout.cshtml footer via IConfiguration
- Shows deployed version (e.g., v0.1.20260724.165410.7bd491e) for users

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-07-24 17:06:56 +09:00
parent 4332d2ceaf
commit 781e04f6e9
2 changed files with 9 additions and 3 deletions
+4 -2
View File
@@ -102,6 +102,7 @@ jobs:
- name: Write Production Config
run: |
mkdir -p ./publish
VERSION="${{ steps.metadata.outputs.version }}"
python3 -c '
import json
import pathlib
@@ -117,7 +118,8 @@ jobs:
"LogLevel": {
"Default": "Information"
}
}
},
"AppVersion": "'$VERSION'"
}
pathlib.Path("./publish/appsettings.Production.json").write_text(
@@ -126,7 +128,7 @@ jobs:
)'
test -s ./publish/appsettings.Production.json || { echo "ERROR: appsettings.Production.json is empty"; exit 1; }
echo "✓ Production config created (no secrets included)"
echo "✓ Production config created (version: $VERSION)"
- name: Package Artifact
run: |
@@ -1,8 +1,12 @@
@using Microsoft.Extensions.Configuration
@inject IConfiguration Configuration
@{
Layout = null;
var currentPath = Context.Request.Path.Value?.ToLowerInvariant() ?? "";
string NavActive(string href) => currentPath.StartsWith(href.ToLowerInvariant()) ? "active" : "";
var version = Configuration["AppVersion"] ?? "dev";
}
<!DOCTYPE html>
@@ -65,7 +69,7 @@
<span class="ms-3"><span class="hotkey-badge">F7</span>엑셀</span>
</div>
<div>
<span class="opacity-75">Douzone ERP Accounting UX Standard | QuantEngine v1.0</span>
<span class="opacity-75">Douzone ERP Accounting UX Standard | QuantEngine @version</span>
</div>
</footer>
</div>