Skip to content

Commit 169a5a0

Browse files
authored
fix github package repos push (#57)
1 parent d1417d8 commit 169a5a0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/ci.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ jobs:
4545
- name: publish canary packages github package repository
4646
if: github.event_name == 'push' && startswith(github.ref, 'refs/heads')
4747
shell: bash
48-
run: |
49-
until dotnet nuget push 'build/output/*.nupkg' -k ${{secrets.GITHUB_TOKEN}} --skip-duplicate --no-symbols true; do echo "Retrying"; sleep 1; done;
48+
timeout-minutes: 10
49+
continue-on-error: true
50+
run: |
51+
until dotnet nuget push 'build/output/*.nupkg' -k ${{secrets.GITHUB_TOKEN}} --skip-duplicate --no-symbols -s https://nuget.pkg.github.com/elastic/index.json; do echo "Retrying"; sleep 1; done;
5052
5153
# Github packages requires authentication, this is likely going away in the future so for now we publish to feedz.io
5254
- run: dotnet nuget push 'build/output/*.nupkg' -k ${{secrets.FEEDZ_IO_API_KEY}} -s https://f.feedz.io/elastic/all/nuget/index.json --skip-duplicate --no-symbols
@@ -60,6 +62,6 @@ jobs:
6062
if: github.event_name == 'push' && startswith(github.ref, 'refs/tags')
6163
name: Create or update release for tag on github
6264

63-
- run: dotnet nuget push 'build/output/*.nupkg' -k ${{secrets.NUGET_ORG_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate --no-symbols true
65+
- run: dotnet nuget push 'build/output/*.nupkg' -k ${{secrets.NUGET_ORG_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate --no-symbols
6466
name: release to nuget.org
6567
if: github.event_name == 'push' && startswith(github.ref, 'refs/tags')

0 commit comments

Comments
 (0)