Skip to content

Commit

Permalink
Use github_ref
Browse files Browse the repository at this point in the history
  • Loading branch information
konraddysput committed Jul 2, 2024
1 parent 93b3e7a commit 31e8a0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
run: dotnet pack ./Backtrace/Backtrace.csproj --configuration Release --no-build -o ./output/

- name: print current tag version
run: echo ${{ env.RELEASE_VERSION }} ./output/Backtrace$${{ env.RELEASE_VERSION }}.nupkg
run: echo $GITHUB_REF ./output/Backtrace$GITHUB_REF.nupkg

- name: Publish to NuGet
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
PACKAGE_VERSION: ${{ github.ref_name }}
run: dotnet nuget push ./output/Backtrace${{ env.RELEASE_VERSION }}.nupkg -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json
run: dotnet nuget push ./output/Backtrace$GITHUB_REF.nupkg -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json

0 comments on commit 31e8a0f

Please sign in to comment.