Skip to content

Commit

Permalink
version link
Browse files Browse the repository at this point in the history
  • Loading branch information
nor0x committed Sep 8, 2024
1 parent 6635425 commit 88792d0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
(Get-Content -Path WahlGPT.Common/Settings.cs) -replace 'QDRANT_HOST', '${{ secrets.QDRANT_HOST }}' | Set-Content -Path WahlGPT.Common/Settings.cs
(Get-Content -Path WahlGPT.Common/Settings.cs) -replace 'QDRANT_API_KEY', '${{ secrets.QDRANT_API_KEY }}' | Set-Content -Path WahlGPT.Common/Settings.cs
(Get-Content -Path WahlGPT.Common/Settings.cs) -replace 'BLOB_CONNECTION_STRING', '${{ secrets.BLOB_CONNECTION_STRING }}' | Set-Content -Path WahlGPT.Common/Settings.cs
(Get-Content -Path WahlGPT.Common/Settings.cs) -replace 'VERSION_HASH', '${{ github.sha }}' | Set-Content -Path WahlGPT.Common/Settings.cs
# publishes Blazor project to the release-folder
- name: Publish .NET Core Project
Expand Down
5 changes: 5 additions & 0 deletions WahlGPT.Common/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@ public static class Settings
public const string QdrantHost = "QDRANT_HOST";
public const string QdrantApiKey = "QDRANT_API_KEY";
public const string BlobConnectionString = "BLOB_CONNECTION_STRING";
public const string Version = "VERSION_HASH";

static IKernelMemory? _kernelMemory;

public static string GetVersionUrl()
{
return "https://github.com/nor0x/wahlgpt/commit/" + Version;
}

public static IKernelMemory BuildKernelMemory()
{
Expand Down
4 changes: 3 additions & 1 deletion WahlGPT.Web/Pages/Home.razor
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
@page "/"
@using Microsoft.KernelMemory
@using System.Globalization
@using WahlGPT.Common

@inject ChatManager _chat;
@inject IJSRuntime _js;

Expand Down Expand Up @@ -181,7 +183,7 @@
Made with ☕ by <a href="https://johnnys.page" target="_blank">Joachim Leonfellner</a> in Vienna 🇦🇹 🇪🇺
</p>
<br />
<p>&copy; 2024</p>
<p>&copy; 2024 | Version: <a href="@Settings.GetVersionUrl()">@Settings.Version</a></p>
</div>
</section>

Expand Down

0 comments on commit 88792d0

Please sign in to comment.