Add versioning, release workflow and changelog
Build and deploy / build (push) Successful in 1m56s
Build and deploy / deploy (push) Successful in 22s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
TomandClaude Opus 5.5 committed 2026-11-14 17:25:11 +01:00
1 parent c22d452720
commit 7c3657d015
11 files changed
+222 -11

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
using System.Reflection;
namespace Flypaper.Web;
public static class AppVersion
{
public static string Current { get; } = Read();
private static string Read()
{
var version = typeof(AppVersion).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion ?? "0.0.0-dev";
var plus = version.IndexOf('+');
return plus >= 0 && version.Length > plus + 8 ? version[..(plus + 8)] : version;
}
}
@@ -11,6 +11,6 @@
</nav>
@Body
<footer class="footer">
<a href="https://db-ip.com">IP Geolocation by DB-IP</a> (CC BY 4.0) · Kartendaten: Natural Earth
Flypaper @AppVersion.Current · <a href="https://db-ip.com">IP Geolocation by DB-IP</a> (CC BY 4.0) · Kartendaten: Natural Earth
</footer>
</main>
+2
View File
@@ -2,6 +2,7 @@ using Flypaper.Core;
using Flypaper.GeoIp;
using Flypaper.Http;
using Flypaper.Storage;
using Flypaper.Web;
using Flypaper.Web.Auth;
using Flypaper.Web.Components;
using Flypaper.Web.Health;
@@ -50,6 +51,7 @@ builder.Services.AddAuthorizationBuilder()
var app = builder.Build();
app.Logger.LogInformation("Flypaper {Version} starting", AppVersion.Current);
await app.Services.MigrateFlypaperDatabaseAsync();
app.UseFlypaper();