Skip to content

Commit aa96c44

Browse files
add publish to github package
1 parent 1ca29af commit aa96c44

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/dotnet-build.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,14 @@ jobs:
8989
echo "ls output directory"
9090
ls -R ./output/nightly
9191
dotnet nuget push --api-key AzureArtifacts ./output/nightly/*.nupkg --skip-duplicate
92-
dotnet nuget push --api-key AzureArtifacts ./output/nightly/*.snupkg --skip-duplicate
9392
env:
9493
AZURE_ARTIFACTS_FEED_URL: https://devdiv.pkgs.visualstudio.com/DevDiv/_packaging/AutoGen/nuget/v3/index.json
95-
NUGET_AUTH_TOKEN: ${{ secrets.AZURE_DEVOPS_TOKEN }}
94+
NUGET_AUTH_TOKEN: ${{ secrets.AZURE_DEVOPS_TOKEN }}
95+
- name: Publish nightly package to github package
96+
run: |
97+
echo "Publish nightly package to github package"
98+
echo "ls output directory"
99+
ls -R ./output/nightly
100+
dotnet nuget add source --username USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/microsoft/index.json"
101+
dotnet nuget push --api-key ${{ secrets.GITHUB_TOKEN }} --source github ./output/nightly/*.nupkg --skip-duplicate
96102

0 commit comments

Comments
 (0)