Skip to content

Commit

Permalink
Update dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Tapanila authored Jul 18, 2024
1 parent c43c4df commit 4d44c87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4d44c87

Please sign in to comment.