Skip to content

Commit

Permalink
Use GITHUB_TOKEN to upload package
Browse files Browse the repository at this point in the history
  • Loading branch information
wherewhere committed Nov 23, 2023
1 parent 6cf6c92 commit 2dfda9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ jobs:

- name: Publish
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
run: dotnet nuget push nugets/**.nupkg --source $env:NUGET_SOURCE --skip-duplicate --api-key ${{ secrets.NUGET_KEY }}
run: dotnet nuget push nugets/**.nupkg --source $env:NUGET_SOURCE --skip-duplicate --api-key $env:GITHUB_TOKEN
env:
NUGET_SOURCE: https://nuget.pkg.github.com/SharpAdb/index.json
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 2dfda9f

Please sign in to comment.