Skip to content

Commit 01b15c4

Browse files
update token
1 parent 43892f0 commit 01b15c4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/dotnet-build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ jobs:
7272
uses: actions/setup-dotnet@v3
7373
with:
7474
version: '6.0.x'
75+
env:
76+
NUGET_AUTH_TOKEN: ${{ secrets.AZURE_DEVOPS_TOKEN }}
7577
- uses: actions/download-artifact@v2
7678
with:
7779
name: nightly
@@ -86,8 +88,8 @@ jobs:
8688
echo "ls output directory"
8789
ls -R ./output/nightly
8890
dotnet nuget add source --name AutoGen $AZURE_ARTIFACTS_FEED_URL
89-
dotnet nuget push --api-key AzureArtifacts ./output/nightly/*.nupkg --source AutoGen
90-
dotnet nuget push --api-key AzureArtifacts ./output/nightly/*.snupkg --source AutoGen
91+
dotnet nuget push --api-key AzureArtifacts ./output/nightly/*.nupkg --source AutoGen --skip-duplicate
92+
dotnet nuget push --api-key AzureArtifacts ./output/nightly/*.snupkg --source AutoGen --skip-duplicate
9193
env:
9294
AZURE_ARTIFACTS_FEED_URL: https://devdiv.pkgs.visualstudio.com/DevDiv/_packaging/AutoGen/nuget/v3/index.json
9395
NUGET_AUTH_TOKEN: ${{ secrets.AZURE_DEVOPS_TOKEN }}

0 commit comments

Comments
 (0)