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
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion tools/Snipdeck.Importer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 14 additions & 2 deletions tools/Snipdeck.Importer/Snipdeck.Importer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,19 @@
<TargetFramework>net10.0</TargetFramework>
<RootNamespace>Snipdeck.Importer</RootNamespace>

<!-- Distributed independently of the desktop app as a global .NET tool. -->
<!-- Distributed independently of the desktop app as a global .NET tool,
published to NuGet.org. The package id is namespaced under the Next
Iteration org; the invoked command stays 'snipdeck-importer'. -->
<PackAsTool>true</PackAsTool>
<ToolCommandName>snipdeck-importer</ToolCommandName>
<PackageId>Snipdeck.Importer</PackageId>
<PackageId>NextIteration.Snipdeck.Importer</PackageId>
<Description>Imports command snippets from SnipCommand (and other sources) into a Snipdeck store.</Description>
<PackageProjectUrl>https://github.com/StuartMeeks/Snipdeck</PackageProjectUrl>
<RepositoryUrl>https://github.com/StuartMeeks/Snipdeck</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageTags>snipdeck;snipcommand;cli;snippets;import;dotnet-tool</PackageTags>

<!--
An executable, not a documented library:
Expand All @@ -19,6 +27,10 @@
<NoWarn>$(NoWarn);CS1591;CA1305</NoWarn>
</PropertyGroup>

<ItemGroup>
<None Include="README.md" Pack="true" PackagePath="\" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Spectre.Console" />
<PackageReference Include="Spectre.Console.Cli" />
Expand Down
Loading