Skip to content

Commit

Permalink
dotnet nuget push fails to authenticate
Browse files Browse the repository at this point in the history
  • Loading branch information
akunzai committed Jan 20, 2021
1 parent a92bcce commit 0fa6d0e
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
- "release/*"
tags:
- "*"
pull_request:
branches:
- main

jobs:
deploy:
Expand All @@ -17,12 +20,17 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
source-url: https://api.nuget.org/v3/index.json
# source-url: https://api.nuget.org/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.NUGET_AUTH_TOKEN}}
- name: Build packages
run: |
dotnet --info
dotnet pack -c Release -o packages
# - name: Build packages
# run: |
# dotnet --info
# dotnet pack -c Release -o packages
- name: Push to NuGet.org
run: dotnet nuget push packages/*.nupkg --skip-duplicate
# env:
# NUGET_AUTH_TOKEN: ${{secrets.NUGET_AUTH_TOKEN}}
run: |
cat nuget.config
echo dotnet nuget push packages/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json --skip-duplicate
# run: dotnet nuget push packages/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json --skip-duplicate

0 comments on commit 0fa6d0e

Please sign in to comment.