Skip to content

Commit

Permalink
moved auth to the step.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjt committed Nov 16, 2023
1 parent ab274bd commit 0d5ebde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
with:
dotnet-version: '8.0.x'
source-url: https://api.nuget.org/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.NUGET_API_KEY}}
- run: dotnet build --configuration Release
- name: Create the package
run: dotnet pack --configuration Release -o artifacts /p:Version=${{ github.ref_name }}
- name: Publish the package to GPR
run: dotnet nuget push artifacts/*.nupkg
run: dotnet nuget push artifacts/*.nupkg $NUGET_AUTH_TOKEN -s https://nuget.pkg.github.com/OWNER/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }}

0 comments on commit 0d5ebde

Please sign in to comment.