From 8477e19214972c857dc03634c0d1460293a988ce Mon Sep 17 00:00:00 2001 From: Tim Abell Date: Sun, 7 Jan 2024 22:30:13 +0000 Subject: [PATCH] Package as dotnet tool Errored with PublishSingleFile enabled so disabled that. https://learn.microsoft.com/en-us/dotnet/core/tools/global-tools-how-to-create#package-the-too://learn.microsoft.com/en-us/dotnet/core/tools/global-tools-how-to-create#package-the-tool Fixes #10 --- publish.sh | 5 +++++ sln-items-sync.sln | 1 + src/sln-items-sync.csproj | 11 ++++++++++- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100755 publish.sh diff --git a/publish.sh b/publish.sh new file mode 100755 index 0000000..cd285f7 --- /dev/null +++ b/publish.sh @@ -0,0 +1,5 @@ +#!/bin/sh -v +set -e +git clean -xfd +dotnet pack +dotnet nuget push src/bin/Release/*.nupkg --source https://api.nuget.org/v3/index.json --api-key="$apikey" diff --git a/sln-items-sync.sln b/sln-items-sync.sln index 6ae3ca7..4e945d8 100644 --- a/sln-items-sync.sln +++ b/sln-items-sync.sln @@ -14,6 +14,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionItems", "SolutionIt .editorconfig = .editorconfig README.md = README.md run.sh = run.sh + publish.sh = publish.sh EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{50259428-AA36-4437-AF08-F1B4DFE0D580}" diff --git a/src/sln-items-sync.csproj b/src/sln-items-sync.csproj index d0de518..5333a8b 100644 --- a/src/sln-items-sync.csproj +++ b/src/sln-items-sync.csproj @@ -5,10 +5,19 @@ sln_items_sync enable enable - true + false false + true + sln-items-sync + Tim Abell + sln-items-sync + 1.0.0 + README.md + + +