Skip to content

Commit

Permalink
Update build_test_and_publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
baetz-daniel authored Sep 22, 2020
1 parent 9e2f1dd commit 86c7441
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build_test_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 86c7441

Please sign in to comment.