From c0e5d27b42a5ed50683ad84343c89c3ccdd384c6 Mon Sep 17 00:00:00 2001 From: Brant Burnett Date: Mon, 16 Dec 2024 09:05:27 -0500 Subject: [PATCH] Use artifacts dir and add NuGet package source mapping (#116) --- .github/workflows/main.yml | 2 +- .gitignore | 1 + Directory.Build.props | 1 + nuget.config | 15 +++++++++++++++ 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 nuget.config diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5bdef28..c310fb2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -147,4 +147,4 @@ jobs: run: dotnet pack --configuration Release -p:Version=${{ steps.version.outputs.version }} - name: Push to NuGet.org run: | - dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json + dotnet nuget push artifacts/package/**/*.nupkg --api-key ${{ secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json diff --git a/.gitignore b/.gitignore index 30cf935..8fec8cd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ [Oo]bj/ [Bb]in/ +artifacts/ packages/ *.suo *.user diff --git a/Directory.Build.props b/Directory.Build.props index ab5ff71..22549d6 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -2,5 +2,6 @@ 13 false + true diff --git a/nuget.config b/nuget.config new file mode 100644 index 0000000..22d500d --- /dev/null +++ b/nuget.config @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + +