Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:

permissions:
contents: write
# NuGet Trusted Publishing: the job exchanges a GitHub OIDC token for a
# short-lived nuget.org API key (NuGet/login@v1), so no long-lived secret.
id-token: write

env:
DOTNET_VERSION: "10.0.x"
Expand Down Expand Up @@ -129,6 +132,17 @@ jobs:
- name: Pack snipdeck-importer (.NET global tool)
run: dotnet pack tools/Snipdeck.Importer/Snipdeck.Importer.csproj --configuration Release --no-restore --output nuget

# Trusted Publishing: exchange the job's GitHub OIDC token for a temporary
# nuget.org API key (valid ~1h). Run immediately before the push so the key
# does not expire. Requires a trusted publishing policy on nuget.org for
# this repo + workflow file (release.yml), and the NUGET_USER secret set to
# the nuget.org profile username (not the account email).
- name: NuGet login (OIDC -> temporary API key)
uses: NuGet/login@v1
id: nuget-login
with:
user: ${{ secrets.NUGET_USER }}

- name: Push snipdeck-importer to NuGet.org
# Resolve the package explicitly — PowerShell does not glob-expand
# arguments to native commands, and `dotnet nuget push` treats the
Expand All @@ -137,4 +151,4 @@ jobs:
run: |
$pkg = Get-ChildItem nuget -Filter *.nupkg | Select-Object -First 1
if (-not $pkg) { Write-Error "No .nupkg found in nuget/"; exit 1 }
dotnet nuget push $pkg.FullName --api-key "${{ secrets.NUGET_API_KEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
dotnet nuget push $pkg.FullName --api-key "${{ steps.nuget-login.outputs.NUGET_API_KEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.0.4] - 2026-06-10

### Changed
- Refreshed bundled dependencies to their latest stable releases, including the
Windows App SDK (2.2.0) and the Velopack updater (1.2.0).

### Security
- The release pipeline now publishes the `snipdeck-importer` .NET tool to NuGet.org
using trusted publishing — short-lived OIDC credentials issued per run — in place
of a long-lived API key.

## [1.0.3] - 2026-06-08

### Fixed
Expand Down
14 changes: 8 additions & 6 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,26 @@

<!-- Execution (command-execution feature; net10.0, no UI) -->
<ItemGroup>
<PackageVersion Include="Microsoft.Data.Sqlite" Version="10.0.8" />
<PackageVersion Include="Microsoft.Data.Sqlite" Version="10.0.9" />
<PackageVersion Include="Porta.Pty" Version="1.0.7" />
</ItemGroup>

<!-- App (WinUI 3 head) -->
<ItemGroup>
<PackageVersion Include="CommunityToolkit.WinUI.Controls.SettingsControls" Version="8.2.251219" />
<PackageVersion Include="H.NotifyIcon.WinUI" Version="2.4.1" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="10.0.8" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="10.0.9" />
<PackageVersion Include="Microsoft.Web.WebView2" Version="1.0.3967.48" />
<PackageVersion Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.28000.1839" />
<PackageVersion Include="Microsoft.WindowsAppSDK" Version="2.1.3" />
<PackageVersion Include="Velopack" Version="1.1.1" />
<PackageVersion Include="Microsoft.WindowsAppSDK" Version="2.2.0" />
<PackageVersion Include="Velopack" Version="1.2.0" />
</ItemGroup>

<!-- Importer tool (console) -->
<!-- Importer tool (console). Spectre.Console.Cli trails Spectre.Console by a
release (no 0.56.0 yet), so it stays at 0.55.0 — its latest stable — while
Spectre.Console moves to 0.56.0. Realign them when Cli 0.56.0 ships. -->
<ItemGroup>
<PackageVersion Include="Spectre.Console" Version="0.55.0" />
<PackageVersion Include="Spectre.Console" Version="0.56.0" />
<PackageVersion Include="Spectre.Console.Cli" Version="0.55.0" />
</ItemGroup>

Expand Down
1 change: 0 additions & 1 deletion src/Snipdeck.App/Snipdeck.App.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<RootNamespace>Snipdeck.App</RootNamespace>
<ApplicationManifest>app.manifest</ApplicationManifest>
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
<PublishProfile>win-$(Platform).pubxml</PublishProfile>
<UseWinUI>true</UseWinUI>
<WinUISDKReferences>false</WinUISDKReferences>
<WindowsPackageType>None</WindowsPackageType>
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/main/src/NerdBank.GitVersioning/version.schema.json",
"version": "1.0.3",
"version": "1.0.4",
"publicReleaseRefSpec": [
"^refs/tags/v\\d+\\.\\d+\\.\\d+"
]
Expand Down
Loading