From 008fb21c8c52406cc2b89cb5cee7cf7caa0e8748 Mon Sep 17 00:00:00 2001 From: singatias <52874619+singatias@users.noreply.github.com> Date: Sat, 4 Nov 2023 16:46:02 -0400 Subject: [PATCH 1/4] Rename dotnet.yml to nuget-publish.yml --- .github/workflows/{dotnet.yml => nuget-publish.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{dotnet.yml => nuget-publish.yml} (100%) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/nuget-publish.yml similarity index 100% rename from .github/workflows/dotnet.yml rename to .github/workflows/nuget-publish.yml From f5da1a966f11a4c2ce0e9ec5cd4b62a87781c8f8 Mon Sep 17 00:00:00 2001 From: singatias <52874619+singatias@users.noreply.github.com> Date: Sat, 4 Nov 2023 16:46:13 -0400 Subject: [PATCH 2/4] Update nuget-publish.yml --- .github/workflows/nuget-publish.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/nuget-publish.yml b/.github/workflows/nuget-publish.yml index a62fb79..488ec69 100644 --- a/.github/workflows/nuget-publish.yml +++ b/.github/workflows/nuget-publish.yml @@ -18,6 +18,9 @@ jobs: - name: Extract Release Version id: extract_version run: echo "RELEASE_VERSION=${{ github.event.release.tag_name }}" >> $GITHUB_ENV + + - name: Debug Release Version + run: echo "RELEASE_VERSION=${{ env.RELEASE_VERSION }}" - name: Setup .NET uses: actions/setup-dotnet@v3 From 415bcca48b4d97ac7b6e41307e9cd988b3eec5c6 Mon Sep 17 00:00:00 2001 From: singatias <52874619+singatias@users.noreply.github.com> Date: Sat, 4 Nov 2023 16:54:42 -0400 Subject: [PATCH 3/4] Update nuget-publish.yml --- .github/workflows/nuget-publish.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/nuget-publish.yml b/.github/workflows/nuget-publish.yml index 488ec69..f0e3b91 100644 --- a/.github/workflows/nuget-publish.yml +++ b/.github/workflows/nuget-publish.yml @@ -35,6 +35,4 @@ jobs: - name: Publish to NuGet.org run: | - dotnet nuget push ./artifacts/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} - env: - NUGET_VERSION: ${{ steps.extract_version.outputs.release_version }} + dotnet nuget push ./artifacts/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --version $RELEASE_VERSION From fba604ad659258432f999eec3b44d0443fbc948e Mon Sep 17 00:00:00 2001 From: singatias <52874619+singatias@users.noreply.github.com> Date: Sat, 4 Nov 2023 16:58:06 -0400 Subject: [PATCH 4/4] Update and rename nuget-publish.yml to publish-nugets.yml --- .github/workflows/{nuget-publish.yml => publish-nugets.yml} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename .github/workflows/{nuget-publish.yml => publish-nugets.yml} (91%) diff --git a/.github/workflows/nuget-publish.yml b/.github/workflows/publish-nugets.yml similarity index 91% rename from .github/workflows/nuget-publish.yml rename to .github/workflows/publish-nugets.yml index f0e3b91..9475578 100644 --- a/.github/workflows/nuget-publish.yml +++ b/.github/workflows/publish-nugets.yml @@ -31,8 +31,8 @@ jobs: run: dotnet restore - name: Build and Pack NuGet Package - run: dotnet pack -c Release -o ./artifacts + run: dotnet pack -c Release -o ./artifacts -p:Version=${{ env.RELEASE_VERSION }} - name: Publish to NuGet.org run: | - dotnet nuget push ./artifacts/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --version $RELEASE_VERSION + dotnet nuget push ./artifacts/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}