Skip to content

Commit bf3c3eb

Browse files
Merge pull request #196 from Darleev/patch-1
Update README.md
2 parents a71d1eb + 450b569 commit bf3c3eb

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,27 @@ steps:
9393
- run: dotnet build <my project>
9494
- name: Create the package
9595
run: dotnet pack --configuration Release <my project>
96-
- name: Publish the package to GPR
96+
- name: Publish the package to GPR
9797
run: dotnet nuget push <my project>/bin/Release/*.nupkg
9898

99-
# Authticates packages to push to Azure Artifacts
99+
# Authenticates packages to push to Azure Artifacts
100100
- uses: actions/setup-dotnet@v1
101101
with:
102102
source-url: https://pkgs.dev.azure.com/<your-organization>/_packaging/<your-feed-name>/nuget/v3/index.json
103103
env:
104104
NUGET_AUTH_TOKEN: ${{secrets.AZURE_DEVOPS_PAT}} # Note, create a secret with this name in Settings
105105
- name: Publish the package to Azure Artifacts
106106
run: dotnet nuget push <my project>/bin/Release/*.nupkg
107+
108+
# Authenticates packages to push to nuget.org.
109+
# It's only the way to push a package to nuget.org feed for macOS/Linux machines due to API key config store limitations.
110+
- uses: actions/setup-dotnet@v1
111+
with:
112+
dotnet-version: 3.1.x
113+
- name: Publish the package to nuget.org
114+
run: dotnet nuget push */bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
115+
env:
116+
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }}
107117
```
108118
109119
## Environment Variables to use with dotnet

0 commit comments

Comments
 (0)