From a168e78398af7028d093e38ae49961794fbefb29 Mon Sep 17 00:00:00 2001 From: Stuart Meeks Date: Mon, 8 Jun 2026 08:22:32 +0000 Subject: [PATCH] Publish snipdeck-importer to NuGet as NextIteration.Snipdeck.Importer The importer was configured as a .NET global tool but never published, so the documented 'dotnet tool install' command had nothing to resolve against. - Rename the package id to NextIteration.Snipdeck.Importer (org-namespaced); the invoked command stays snipdeck-importer. - Add NuGet listing metadata: project/repo URLs, Apache-2.0 licence expression, packed README, tags. - Pack and push the tool to NuGet.org from the release pipeline on each version tag (NBGV stamps the same version as the app). - Update the tool README and changelog with the new install command. Requires a NUGET_API_KEY repository secret for the push step. Co-Authored-By: Claude Opus 4.8 --- .github/workflows/release.yml | 9 +++++++++ CHANGELOG.md | 6 ++++++ tools/Snipdeck.Importer/README.md | 5 ++++- tools/Snipdeck.Importer/Snipdeck.Importer.csproj | 16 ++++++++++++++-- 4 files changed, 33 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6820743..c00f6d4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -122,3 +122,12 @@ jobs: generate_release_notes: true files: | Releases/* + + # The SnipCommand importer ships independently of the desktop app as a + # .NET global tool on NuGet.org. NBGV stamps the same version as the app + # at build time, so no explicit -p:Version is needed here either. + - name: Pack snipdeck-importer (.NET global tool) + run: dotnet pack tools/Snipdeck.Importer/Snipdeck.Importer.csproj --configuration Release --no-restore --output nuget + + - name: Push snipdeck-importer to NuGet.org + run: dotnet nuget push "nuget/*.nupkg" --api-key "${{ secrets.NUGET_API_KEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate diff --git a/CHANGELOG.md b/CHANGELOG.md index e138228..f883ccf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added +- The SnipCommand importer is now published to NuGet as a .NET global tool. Install it + with `dotnet tool install --global NextIteration.Snipdeck.Importer`; the command stays + `snipdeck-importer`. The release pipeline packs and pushes it to NuGet.org on each + version tag. + ## [1.0.1] - 2026-06-08 ### Fixed diff --git a/tools/Snipdeck.Importer/README.md b/tools/Snipdeck.Importer/README.md index d30dda8..08d112c 100644 --- a/tools/Snipdeck.Importer/README.md +++ b/tools/Snipdeck.Importer/README.md @@ -11,9 +11,12 @@ for bulk-prepping an import on a non-Windows box before opening Snipdeck. ## Install ```bash -dotnet tool install -g Snipdeck.Importer +dotnet tool install -g NextIteration.Snipdeck.Importer ``` +The package id is `NextIteration.Snipdeck.Importer`; the installed command is +`snipdeck-importer`. + Or run it straight from the repo without installing: ```bash diff --git a/tools/Snipdeck.Importer/Snipdeck.Importer.csproj b/tools/Snipdeck.Importer/Snipdeck.Importer.csproj index 8f84bf2..46961f1 100644 --- a/tools/Snipdeck.Importer/Snipdeck.Importer.csproj +++ b/tools/Snipdeck.Importer/Snipdeck.Importer.csproj @@ -5,11 +5,19 @@ net10.0 Snipdeck.Importer - + true snipdeck-importer - Snipdeck.Importer + NextIteration.Snipdeck.Importer Imports command snippets from SnipCommand (and other sources) into a Snipdeck store. + https://github.com/StuartMeeks/Snipdeck + https://github.com/StuartMeeks/Snipdeck + git + Apache-2.0 + README.md + snipdeck;snipcommand;cli;snippets;import;dotnet-tool