Skip to content

Commit f58c8c3

Browse files
authored
Update build.yml
1 parent dd099d8 commit f58c8c3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,13 @@ jobs:
6767
run: dotnet nuget add source https://nuget.pkg.github.com/RehanSaeed/index.json --name GitHub --username RehanSaeed --password ${{secrets.GITHUB_TOKEN}}
6868
shell: pwsh
6969
- name: 'Dotnet NuGet Push'
70-
run: dotnet nuget push .\windows-latest\*.nupkg --source GitHub --skip-duplicate
70+
run: |
71+
$count = 0;
72+
do {
73+
++$count;
74+
dotnet nuget push .\windows-latest\*.nupkg --source GitHub --skip-duplicate;
75+
}
76+
while ($count -lt 30 -and $LastExitCode -ne 0)
7177
shell: pwsh
7278

7379
push-nuget:

0 commit comments

Comments
 (0)