Skip to content

Commit

Permalink
Fixed the release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
leMicin committed Jul 23, 2024
1 parent 24d9580 commit eed9eb1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/wpf-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
-prerelease | select-object -first 1
Push-Location "src/Sidekick.Wpf"
& $msBuildPath Sidekick.Wpf.csproj /target:Publish /property:PublishProfile=ClickOnceBeta /property:ApplicationVersion=$version
& $msBuildPath Sidekick.Wpf.csproj /target:Publish /property:PublishProfile=ClickOnceRelease /property:ApplicationVersion=$version
Pop-Location
- name: Git - Setup
Expand Down
3 changes: 1 addition & 2 deletions src/Sidekick.Common.Ui/Views/CurrentView.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Microsoft.AspNetCore.Components;
using Sidekick.Common.Exceptions;

namespace Sidekick.Common.Ui.Views;

Expand All @@ -23,7 +22,7 @@ public class CurrentView(
public string Url => navigationManager.Uri;

/// <inheritdoc/>
public string? Key => Url.Split('/', '\\').FirstOrDefault(x => !string.IsNullOrEmpty(x));
public string? Key => new Uri(Url).AbsolutePath.Split('/', '\\').FirstOrDefault(x => !string.IsNullOrEmpty(x));

/// <inheritdoc/>
public SidekickView? Current { get; private set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<OpenBrowserOnPublish>False</OpenBrowserOnPublish>
<Platform>Any CPU</Platform>
<ProductName>Sidekick</ProductName>
<PublishDir>bin\Release\net8.0-windows\win-x64\app.publish\</PublishDir>
<PublishDir>bin\publish\</PublishDir>
<PublishUrl>bin\publish\</PublishUrl>
<PublisherName>Sidekick</PublisherName>
<PublishProtocol>ClickOnce</PublishProtocol>
Expand Down

0 comments on commit eed9eb1

Please sign in to comment.