Skip to content

Commit

Permalink
ci: fix github auth
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Mar 27, 2023
1 parent 013581e commit 471eb91
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,11 @@ jobs:
path: bin/*.nupkg

- name: deploy github.com
run: |
dotnet nuget add source --username $NUGET_USR --password $NUGET_PSW --store-password-in-clear-text --name github $NUGET_SOURCE
find bin -name '*.nupkg' | xargs dotnet nuget push -s github --skip-duplicate --force-english-output
run: find bin -name '*.nupkg' | xargs dotnet nuget push -s $NUGET_SOURCE -k $NUGET_KEY --skip-duplicate --force-english-output
shell: bash
env:
NUGET_SOURCE: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
NUGET_USR: ${{ github.repository_owner }}
NUGET_PSW: ${{ secrets.GITHUB_TOKEN }}
NUGET_KEY: ${{ secrets.GITHUB_TOKEN }}

- name: deploy nuget.org
run: find bin -name '*.nupkg' | xargs dotnet nuget push -s $NUGET_SOURCE -k $NUGET_KEY --skip-duplicate --force-english-output
Expand Down

0 comments on commit 471eb91

Please sign in to comment.