Compare commits

..

3 Commits

Author SHA1 Message Date
kjh2064 024122d310 fix(web): resolve path separator mismatch in git commit hash parsing, and update fallback release values
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 16s
Validators (Pushes and Pull Requests) / validate-core (push) Successful in 1m47s
2026-07-12 13:57:42 +09:00
kjh2064 c6f269e30a ci(gitea): serialize pipeline into Validators -> Prepare Release -> Deploy sequence
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 23s
Validators (Pushes and Pull Requests) / validate-core (push) Successful in 2m7s
2026-07-12 13:51:59 +09:00
kjh2064 97447a551f ci(gitea): trigger deploy-prod workflow automatically after Validators pipeline finishes
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 21s
Validators (Pushes and Pull Requests) / validate-core (push) Has been cancelled
Prepare Release / Build & Create Release (push) Successful in 1m14s
Prepare Release / Release Notification (push) Successful in 1s
2026-07-12 13:51:25 +09:00
4 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ name: Deploy to Production
on:
workflow_run:
workflows: [Prepare Release]
workflows: ["Prepare Release"]
types: [completed]
workflow_dispatch:
inputs:
+4 -2
View File
@@ -1,8 +1,9 @@
name: Prepare Release
on:
push:
branches: [main]
workflow_run:
workflows: ["Validators (Pushes and Pull Requests)"]
types: [completed]
workflow_dispatch:
inputs:
version:
@@ -16,6 +17,7 @@ env:
jobs:
build-and-release:
name: Build & Create Release
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
timeout-minutes: 30
outputs:
@@ -32,7 +32,7 @@ public class LoginModel : PageModel
}
var dateStr = DateTime.UtcNow.AddHours(9).ToString("yyyyMMdd");
string gitHash = "a9986fb";
string gitHash = "c6f269e";
try
{
var baseDir = AppContext.BaseDirectory;
@@ -55,7 +55,7 @@ public class LoginModel : PageModel
var headContent = System.IO.File.ReadAllText(headPath).Trim();
if (headContent.StartsWith("ref:"))
{
var refPath = Path.Combine(repoRoot, ".git", headContent.Substring(4).Trim());
var refPath = Path.Combine(repoRoot, ".git", headContent.Substring(4).Trim().Replace('/', Path.DirectorySeparatorChar));
if (System.IO.File.Exists(refPath))
{
var fullHash = System.IO.File.ReadAllText(refPath).Trim();
@@ -72,7 +72,7 @@ public class LoginModel : PageModel
}
catch {}
int runCount = 14;
int runCount = 11;
return $"quant_{dateStr}.{runCount}.{gitHash}";
}
}
@@ -33,7 +33,7 @@ public class IndexModel : PageModel
}
var dateStr = DateTime.UtcNow.AddHours(9).ToString("yyyyMMdd");
string gitHash = "a9986fb";
string gitHash = "c6f269e";
try
{
var baseDir = AppContext.BaseDirectory;
@@ -56,7 +56,7 @@ public class IndexModel : PageModel
var headContent = System.IO.File.ReadAllText(headPath).Trim();
if (headContent.StartsWith("ref:"))
{
var refPath = Path.Combine(repoRoot, ".git", headContent.Substring(4).Trim());
var refPath = Path.Combine(repoRoot, ".git", headContent.Substring(4).Trim().Replace('/', Path.DirectorySeparatorChar));
if (System.IO.File.Exists(refPath))
{
var fullHash = System.IO.File.ReadAllText(refPath).Trim();
@@ -73,7 +73,7 @@ public class IndexModel : PageModel
}
catch {}
int runCount = 14;
int runCount = 11;
return $"quant_{dateStr}.{runCount}.{gitHash}";
}
}