From 86c7441b4dbc7c055dbb782b0281986e56233e7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20B=C3=A4tz?= Date: Tue, 22 Sep 2020 23:57:47 +0200 Subject: [PATCH] Update build_test_and_publish.yml --- .github/workflows/build_test_and_publish.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_test_and_publish.yml b/.github/workflows/build_test_and_publish.yml index d896a3f..9226115 100644 --- a/.github/workflows/build_test_and_publish.yml +++ b/.github/workflows/build_test_and_publish.yml @@ -59,11 +59,13 @@ jobs: dotnet-version: 3.1.301 - name: publish ${{ github.repository }} [v${{ env.TAG_VERSION }}] run: | - dotnet nuget add source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --name github --username ${{ github.repository_owner }} --store-password-in-clear-text --password ${{ github.token }} dotnet pack --configuration Windows-Debug --verbosity m --force --nologo -p:Platform=AnyCPU -p:Version=$TAG_VERSION dotnet pack --configuration Windows-Debug --verbosity m --force --nologo -p:Platform=x86 -p:Version=$TAG_VERSION dotnet pack --configuration Windows-Debug --verbosity m --force --nologo -p:Platform=x64 -p:Version=$TAG_VERSION - until dotnet nuget push **/*.nupkg --source github --api-key ${{ github.token }} --skip-duplicate --disable-buffering --no-service-endpoint; do echo "retrying in 10s..."; sleep 10; done + for f in ./*.nupkg + do + curl -fsSX PUT --retry 3 -u "${{ github.repository_owner }}:${{ github.token }}" -F package=@$f https://nuget.pkg.github.com/${{ github.repository_owner }}/ || exit 1 + done shell: bash working-directory: src/Exomia.Network publish-nuget-windows: @@ -138,11 +140,13 @@ jobs: dotnet-version: 3.1.301 - name: publish ${{ github.repository }} [v${{ env.TAG_VERSION }}] run: | - dotnet nuget add source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --name github --username ${{ github.repository_owner }} --store-password-in-clear-text --password ${{ github.token }} dotnet pack --configuration Linux-Debug --verbosity m --force --nologo -p:Platform=AnyCPU -p:Version=$TAG_VERSION dotnet pack --configuration Linux-Debug --verbosity m --force --nologo -p:Platform=x86 -p:Version=$TAG_VERSION dotnet pack --configuration Linux-Debug --verbosity m --force --nologo -p:Platform=x64 -p:Version=$TAG_VERSION - until dotnet nuget push **/*.nupkg --source github --api-key ${{ github.token }} --skip-duplicate --disable-buffering --no-service-endpoint; do echo "retrying in 10s..."; sleep 10; done + for f in ./*.nupkg + do + curl -fsSX PUT --retry 3 -u "${{ github.repository_owner }}:${{ github.token }}" -F package=@$f https://nuget.pkg.github.com/${{ github.repository_owner }}/ || exit 1 + done shell: bash working-directory: src/Exomia.Network publish-nuget-linux: