From bf92a8c5ad48f148395fcae042b382de5e3555ea Mon Sep 17 00:00:00 2001 From: Adam Renaud Date: Wed, 17 Mar 2021 18:23:05 -0400 Subject: [PATCH 01/23] Updating build client to include netcoreapp3.1 --- .github/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b65ccb8..fc55a6d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,9 +13,15 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Setup .NET + - name: Setup .NET 3.1 + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 3.1.x + + - name: Setup .NET 5.0 uses: actions/setup-dotnet@v1 with: dotnet-version: 5.0.x + - name: Nuke Build run: /bin/bash ./build.sh From d6ebbd1483ec18e8833afd067c3571e6f0f18303 Mon Sep 17 00:00:00 2001 From: Adam Renaud Date: Wed, 17 Mar 2021 18:36:13 -0400 Subject: [PATCH 02/23] Testing nuget locations --- .github/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fc55a6d..2b4f66d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,6 +22,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: 5.0.x - + + - name: Nuget location + run: ls /home/runner/.nuget/packages/ + - name: Nuke Build run: /bin/bash ./build.sh + + - name: Nuget location + run: ls /home/runner/.nuget/packages/ From fee1666d2e629ad6a05ab28930777d72778aa25f Mon Sep 17 00:00:00 2001 From: Adam Renaud Date: Wed, 17 Mar 2021 18:37:23 -0400 Subject: [PATCH 03/23] Removing first location search --- .github/workflows/build.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2b4f66d..94a6bd7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,9 +23,6 @@ jobs: with: dotnet-version: 5.0.x - - name: Nuget location - run: ls /home/runner/.nuget/packages/ - - name: Nuke Build run: /bin/bash ./build.sh From 0830ef6899b0a578b557586ee9df36c97ae0403e Mon Sep 17 00:00:00 2001 From: Adam Renaud Date: Wed, 17 Mar 2021 18:38:52 -0400 Subject: [PATCH 04/23] commenting out nuke --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 94a6bd7..bed0d7b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,8 +23,8 @@ jobs: with: dotnet-version: 5.0.x - - name: Nuke Build - run: /bin/bash ./build.sh +# - name: Nuke Build +# run: /bin/bash ./build.sh - name: Nuget location run: ls /home/runner/.nuget/packages/ From 0b8b786a25e60860fe21bc61862b2241f14563a7 Mon Sep 17 00:00:00 2001 From: Adam Renaud Date: Wed, 17 Mar 2021 18:39:38 -0400 Subject: [PATCH 05/23] Changing to dotnet restore --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bed0d7b..efb53ce 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,8 +23,8 @@ jobs: with: dotnet-version: 5.0.x -# - name: Nuke Build -# run: /bin/bash ./build.sh + - name: Nuke Build + run: dotnet restore - name: Nuget location run: ls /home/runner/.nuget/packages/ From 3b6aa45bad432322a7c5f38505e8ba1e6616e629 Mon Sep 17 00:00:00 2001 From: Adam Renaud Date: Wed, 17 Mar 2021 18:41:42 -0400 Subject: [PATCH 06/23] adding restore to to build folder --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index efb53ce..04b4c3a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: .NET +name: Mapr Build on: push: @@ -24,7 +24,7 @@ jobs: dotnet-version: 5.0.x - name: Nuke Build - run: dotnet restore + run: dotnet restore ./build/ - name: Nuget location run: ls /home/runner/.nuget/packages/ From 7858975ce934908544fece2cb220d8f75a7805c3 Mon Sep 17 00:00:00 2001 From: Adam Renaud Date: Wed, 17 Mar 2021 18:43:35 -0400 Subject: [PATCH 07/23] Testing out location --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 04b4c3a..21d496e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,4 +27,4 @@ jobs: run: dotnet restore ./build/ - name: Nuget location - run: ls /home/runner/.nuget/packages/ + run: ls /home/runner/.nuget/packages/gitversion.tool/5.5.1/tools/netcoreapp3.1/any/ From d23d4cd579ca46ae9ba2bf61bc9a30ad3bfa883b Mon Sep 17 00:00:00 2001 From: Adam Renaud Date: Wed, 17 Mar 2021 18:45:39 -0400 Subject: [PATCH 08/23] Nuke restore --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 21d496e..f96d590 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,9 +22,9 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: 5.0.x + + - name: Nuke Restore + run: dotnet restore ./build/ - name: Nuke Build - run: dotnet restore ./build/ - - - name: Nuget location - run: ls /home/runner/.nuget/packages/gitversion.tool/5.5.1/tools/netcoreapp3.1/any/ + run: ./build.sh From 1123bde972e97674e051bb77cf0b2a0914173b8e Mon Sep 17 00:00:00 2001 From: Adam Renaud Date: Wed, 17 Mar 2021 18:50:18 -0400 Subject: [PATCH 09/23] adding workdir to gitversion --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f96d590..86aa2b6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,4 +27,4 @@ jobs: run: dotnet restore ./build/ - name: Nuke Build - run: ./build.sh + run: /home/runner/.dotnet/dotnet /home/runner/.nuget/packages/gitversion.tool/5.5.1/tools/netcoreapp3.1/any/gitversion.dll /home/runner/work/ From b3207ec7e1e50650162aedd4f6aeb155558888d6 Mon Sep 17 00:00:00 2001 From: Adam Renaud Date: Wed, 17 Mar 2021 18:52:51 -0400 Subject: [PATCH 10/23] Setting working dir --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 86aa2b6..76ade54 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,4 +27,4 @@ jobs: run: dotnet restore ./build/ - name: Nuke Build - run: /home/runner/.dotnet/dotnet /home/runner/.nuget/packages/gitversion.tool/5.5.1/tools/netcoreapp3.1/any/gitversion.dll /home/runner/work/ + run: /home/runner/.dotnet/dotnet /home/runner/.nuget/packages/gitversion.tool/5.5.1/tools/netcoreapp3.1/any/gitversion.dll /home/runner/work/mapr From 54bfa2ae55fd97b430dc9d0ee52e3eadbc57aaea Mon Sep 17 00:00:00 2001 From: Adam Renaud Date: Wed, 17 Mar 2021 18:54:12 -0400 Subject: [PATCH 11/23] Setting working dir again --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 76ade54..7e7cf21 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,4 +27,4 @@ jobs: run: dotnet restore ./build/ - name: Nuke Build - run: /home/runner/.dotnet/dotnet /home/runner/.nuget/packages/gitversion.tool/5.5.1/tools/netcoreapp3.1/any/gitversion.dll /home/runner/work/mapr + run: /home/runner/.dotnet/dotnet /home/runner/.nuget/packages/gitversion.tool/5.5.1/tools/netcoreapp3.1/any/gitversion.dll /home/runner/work/mapr/mapr From dbff9d7d9252d3f893ff8984dd6e263a81274eaa Mon Sep 17 00:00:00 2001 From: Adam Renaud Date: Wed, 17 Mar 2021 18:59:41 -0400 Subject: [PATCH 12/23] Changing to v1 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7e7cf21..2424e41 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v1 - name: Setup .NET 3.1 uses: actions/setup-dotnet@v1 with: From ec13ccbb9c2b6034e688498d2ab28c3cb31b2d93 Mon Sep 17 00:00:00 2001 From: Adam Renaud Date: Wed, 17 Mar 2021 19:02:07 -0400 Subject: [PATCH 13/23] Changing back to nuke --- .github/workflows/build.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2424e41..3fa3013 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,8 +23,5 @@ jobs: with: dotnet-version: 5.0.x - - name: Nuke Restore - run: dotnet restore ./build/ - - - name: Nuke Build - run: /home/runner/.dotnet/dotnet /home/runner/.nuget/packages/gitversion.tool/5.5.1/tools/netcoreapp3.1/any/gitversion.dll /home/runner/work/mapr/mapr + - name: Nuke + run: ./build.sh From 31e209d804982ecc232f0244e099bf92aafaaf5d Mon Sep 17 00:00:00 2001 From: Adam Renaud Date: Wed, 17 Mar 2021 19:23:49 -0400 Subject: [PATCH 14/23] adding nuget push --- .github/workflows/build.yml | 3 +++ build/Build.cs | 15 ++++++++++++++- src/Mapr/Mapr.csproj | 8 ++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3fa3013..3740423 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,3 +25,6 @@ jobs: - name: Nuke run: ./build.sh + + - name: Nuget Push + run: dotnet nuget push ./output/*.nupkg diff --git a/build/Build.cs b/build/Build.cs index 9f19d8a..54dc4d6 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -20,10 +20,13 @@ class Build : NukeBuild [Parameter("Configuration to build - Default is 'Debug' (local) or 'Release' (server)")] readonly Configuration Configuration = IsLocalBuild ? Configuration.Debug : Configuration.Release; + [Parameter] + readonly string ApiKey; + [Solution] readonly Solution Solution; [GitRepository] readonly GitRepository GitRepository; [GitVersion(Framework = "netcoreapp3.1")] readonly GitVersion GitVersion; - + AbsolutePath SourceDirectory => RootDirectory / "src"; AbsolutePath TestsDirectory => RootDirectory / "tests"; AbsolutePath OutputDirectory => RootDirectory / "output"; @@ -83,4 +86,14 @@ class Build : NukeBuild .SetInformationalVersion(GitVersion.InformationalVersion) .SetOutputDirectory(OutputDirectory)); }); + + Target Publish => _ => _ + .DependsOn(Pack) + .Executes(() => + { + DotNetNuGetPush(p => p + .SetTargetPath(OutputDirectory / "*.nupkg") + .SetApiKey(ApiKey) + .SetSource("https://api.nuget.org/v3/index.json")); + }); } \ No newline at end of file diff --git a/src/Mapr/Mapr.csproj b/src/Mapr/Mapr.csproj index 2991887..e648a60 100644 --- a/src/Mapr/Mapr.csproj +++ b/src/Mapr/Mapr.csproj @@ -5,4 +5,12 @@ enable + + Mapr + Adam Renaud + + A simple object to object mapper, no magic. + + + From 4014e3958a1720f690990c0128f7183b0a8263a6 Mon Sep 17 00:00:00 2001 From: Adam Renaud Date: Wed, 17 Mar 2021 19:31:30 -0400 Subject: [PATCH 15/23] adding nuget api key --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3740423..1a4c04a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,8 @@ on: jobs: build: + environment: actions + runs-on: ubuntu-latest steps: @@ -27,4 +29,4 @@ jobs: run: ./build.sh - name: Nuget Push - run: dotnet nuget push ./output/*.nupkg + run: dotnet nuget push ./output/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json From 9a61db98a02b1d6b053ea0728958117fa7a1e312 Mon Sep 17 00:00:00 2001 From: Adam Renaud Date: Wed, 17 Mar 2021 19:37:02 -0400 Subject: [PATCH 16/23] changing env --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1a4c04a..3162634 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ on: jobs: build: - environment: actions + environment: nuget runs-on: ubuntu-latest @@ -29,4 +29,4 @@ jobs: run: ./build.sh - name: Nuget Push - run: dotnet nuget push ./output/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json + run: dotnet nuget push ./output/*.nupkg --api-key $NUGET_API_KEY --source "https://api.nuget.org/v3/index.json" From 2d3ce5cd52f8d26f8528d49295b3a6df71a5679e Mon Sep 17 00:00:00 2001 From: Adam Renaud Date: Wed, 17 Mar 2021 19:44:41 -0400 Subject: [PATCH 17/23] trying new secret syntax --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3162634..acf41ab 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,8 +9,6 @@ on: jobs: build: - environment: nuget - runs-on: ubuntu-latest steps: @@ -19,6 +17,8 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: 3.1.x + env: + NUGET_API_KEY: ${{secrets.NUGET_API_KEY}} - name: Setup .NET 5.0 uses: actions/setup-dotnet@v1 @@ -29,4 +29,4 @@ jobs: run: ./build.sh - name: Nuget Push - run: dotnet nuget push ./output/*.nupkg --api-key $NUGET_API_KEY --source "https://api.nuget.org/v3/index.json" + run: dotnet nuget push ./output/*.nupkg -s https://api.nuget.org/v3/index.json From 839074513281f9e7608cc6d4cf66372b06a55cca Mon Sep 17 00:00:00 2001 From: Adam Renaud Date: Wed, 17 Mar 2021 19:47:13 -0400 Subject: [PATCH 18/23] setting auth token in dotnet nuget --- .github/workflows/build.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index acf41ab..e771141 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,8 +17,7 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: 3.1.x - env: - NUGET_API_KEY: ${{secrets.NUGET_API_KEY}} + - name: Setup .NET 5.0 uses: actions/setup-dotnet@v1 @@ -29,4 +28,6 @@ jobs: run: ./build.sh - name: Nuget Push - run: dotnet nuget push ./output/*.nupkg -s https://api.nuget.org/v3/index.json + run: dotnet nuget push ./output/*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_AUTH_TOKEN + env: + NUGET_AUTH_TOKEN: ${{secrets.NUGET_API_KEY}} From 5ebe83069160573e9d6bdc6c7dc52859fa48f22b Mon Sep 17 00:00:00 2001 From: Adam Renaud Date: Wed, 17 Mar 2021 19:51:33 -0400 Subject: [PATCH 19/23] Updating package information --- src/Mapr/Mapr.csproj | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Mapr/Mapr.csproj b/src/Mapr/Mapr.csproj index e648a60..e6fd819 100644 --- a/src/Mapr/Mapr.csproj +++ b/src/Mapr/Mapr.csproj @@ -3,14 +3,19 @@ net5.0 enable + + Mapr Mapr Adam Renaud - - A simple object to object mapper, no magic. - + A simple object to object mapper, no magic. + https://github.com/rena0157/mapr + https://licenses.nuget.org/MIT + https://github.com/rena0157/mapr + git + Mappr;AutoMapper From 93d62013db2a66d3b08f5559abf816795af08755 Mon Sep 17 00:00:00 2001 From: Adam Renaud Date: Wed, 17 Mar 2021 19:52:52 -0400 Subject: [PATCH 20/23] Setting update to build number --- build/Build.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/Build.cs b/build/Build.cs index 54dc4d6..5fcf1ff 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -25,7 +25,7 @@ class Build : NukeBuild [Solution] readonly Solution Solution; [GitRepository] readonly GitRepository GitRepository; - [GitVersion(Framework = "netcoreapp3.1")] readonly GitVersion GitVersion; + [GitVersion(Framework = "netcoreapp3.1", UpdateBuildNumber = true)] readonly GitVersion GitVersion; AbsolutePath SourceDirectory => RootDirectory / "src"; AbsolutePath TestsDirectory => RootDirectory / "tests"; From 33c0ab67db0d1aa5d54f83ca0675173b262d22f4 Mon Sep 17 00:00:00 2001 From: Adam Renaud Date: Wed, 17 Mar 2021 20:13:20 -0400 Subject: [PATCH 21/23] Changing to publish --- .github/workflows/build.yml | 6 ++---- build/Build.cs | 23 ++++++++++++++++++----- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e771141..3ad2af9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,9 +25,7 @@ jobs: dotnet-version: 5.0.x - name: Nuke - run: ./build.sh - - - name: Nuget Push - run: dotnet nuget push ./output/*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_AUTH_TOKEN + run: ./build.sh publish --github-token $GITHUB_TOKEN --nuget-api-key $NUGET_AUTH_TOKEN env: NUGET_AUTH_TOKEN: ${{secrets.NUGET_API_KEY}} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/build/Build.cs b/build/Build.cs index 5fcf1ff..5dddccb 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -1,5 +1,7 @@ +using System.IO; using Nuke.Common; using Nuke.Common.CI; +using Nuke.Common.CI.GitHubActions; using Nuke.Common.Execution; using Nuke.Common.Git; using Nuke.Common.IO; @@ -21,7 +23,10 @@ class Build : NukeBuild readonly Configuration Configuration = IsLocalBuild ? Configuration.Debug : Configuration.Release; [Parameter] - readonly string ApiKey; + readonly string NugetApiKey; + + [Parameter] + readonly string GitHubToken; [Solution] readonly Solution Solution; [GitRepository] readonly GitRepository GitRepository; @@ -91,9 +96,17 @@ class Build : NukeBuild .DependsOn(Pack) .Executes(() => { - DotNetNuGetPush(p => p - .SetTargetPath(OutputDirectory / "*.nupkg") - .SetApiKey(ApiKey) - .SetSource("https://api.nuget.org/v3/index.json")); + if (GitRepository.IsOnDevelopBranch()) + { + DotNetNuGetPush(p => p + .SetSource("github") + .SetApiKey(NugetApiKey)); + } + else if (GitRepository.IsOnMasterBranch()) + { + DotNetNuGetPush(p => p + .SetSource("https://api.nuget.org/v3/index.json") + .SetApiKey(NugetApiKey)); + } }); } \ No newline at end of file From 28dc4f800827f6b30d1380bcbc2743762e05b6f1 Mon Sep 17 00:00:00 2001 From: Adam Renaud Date: Wed, 17 Mar 2021 20:13:57 -0400 Subject: [PATCH 22/23] Changing to git hub token --- build/Build.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/Build.cs b/build/Build.cs index 5dddccb..2c37d0a 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -100,7 +100,7 @@ class Build : NukeBuild { DotNetNuGetPush(p => p .SetSource("github") - .SetApiKey(NugetApiKey)); + .SetApiKey(GitHubToken)); } else if (GitRepository.IsOnMasterBranch()) { From d0caad1afb48dca92a5ff79034bbe7801f43f0ee Mon Sep 17 00:00:00 2001 From: Adam Renaud Date: Wed, 17 Mar 2021 20:16:05 -0400 Subject: [PATCH 23/23] Setting package location --- build/Build.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/Build.cs b/build/Build.cs index 2c37d0a..f171108 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -99,12 +99,14 @@ class Build : NukeBuild if (GitRepository.IsOnDevelopBranch()) { DotNetNuGetPush(p => p - .SetSource("github") + .SetTargetPath(OutputDirectory / "*.nupkg") + .SetSource("https://nuget.pkg.github.com/rena0157/index.json") .SetApiKey(GitHubToken)); } else if (GitRepository.IsOnMasterBranch()) { DotNetNuGetPush(p => p + .SetTargetPath(OutputDirectory / "*.nupkg") .SetSource("https://api.nuget.org/v3/index.json") .SetApiKey(NugetApiKey)); }