From 4d44c87cc04eee4ff4748c8766b21ca9c4597f4b Mon Sep 17 00:00:00 2001 From: Teemu Tapanila Date: Thu, 18 Jul 2024 13:35:03 +0300 Subject: [PATCH] Update dotnet.yml --- .github/workflows/dotnet.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 2257a0c..c966940 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -25,14 +25,14 @@ jobs: - name: tag id: tag run: | - version="$(gh release view -q .name --json tagName)" + version="$(gh release view -q .tagName --json tagName)" echo 'VERSION='$version >> $GITHUB_ENV env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Build - run: dotnet build --no-restore --configuration Release /p:Version=$VERSION Sharpcaster/Sharpcaster.csproj + run: dotnet build --no-restore --configuration Release /p:Version=${{ env.VERSION }} Sharpcaster/Sharpcaster.csproj - name: Package - run: dotnet pack --configuration Release /p:Version=$VERSION /p:NuspecFile=../SharpCaster.nuspec Sharpcaster/Sharpcaster.csproj + run: dotnet pack --configuration Release /p:Version=${{ env.VERSION }} /p:NuspecFile=../SharpCaster.nuspec Sharpcaster/Sharpcaster.csproj - name: Push if: github.event_name == 'release' && github.event.action == 'published' run: dotnet nuget push "**/*.nupkg" -k $NUGET_AUTH_TOKEN -s nuget.org