From 55c3a8517158bdbe8a54ff68e7de371c6d0bdcac Mon Sep 17 00:00:00 2001 From: Xavier Hahn Date: Fri, 5 Oct 2018 22:23:23 +0200 Subject: [PATCH 1/3] Adds a Deploy Travis task that publishes to NuGet Adds a Travis deploy task that publishes the created NuGet package to NuGet. It is the first proposal to fix the issue #66 --- .travis.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index 24cb8ed..4cdbf87 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,13 @@ install: script: - xbuild /p:Configuration=Release CSharpHTTPClient/CSharpHTTPClient.sln - mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe UnitTest/bin/Release/UnitTest.dll -domain:None +deploy: + skip_cleanup: true + provider: script + script: nuget push ./CSharpHTTPClient/bin/Release/*.nupkg + on: + branch: master + condition: '"x$NUGET_API_KEY" != "x" && "x$NUGET_SOURCE" != "x"' notifications: hipchat: rooms: From 9da7e58ab0ab745f85cb9fd5113d5a1a22a5429e Mon Sep 17 00:00:00 2001 From: Xavier Hahn Date: Sat, 6 Oct 2018 02:06:56 +0200 Subject: [PATCH 2/3] Removes useless condition --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4cdbf87..6722ace 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,6 @@ deploy: script: nuget push ./CSharpHTTPClient/bin/Release/*.nupkg on: branch: master - condition: '"x$NUGET_API_KEY" != "x" && "x$NUGET_SOURCE" != "x"' notifications: hipchat: rooms: From 9fc2ff59c67360ee5561230c967e449f579e8c1f Mon Sep 17 00:00:00 2001 From: Elmer Thomas Date: Thu, 16 Jan 2020 12:01:45 -0800 Subject: [PATCH 3/3] Update .travis.yml --- .travis.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6722ace..1a5d3e9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,15 +12,7 @@ script: deploy: skip_cleanup: true provider: script - script: nuget push ./CSharpHTTPClient/bin/Release/*.nupkg + script: nuget push ./CSharpHTTPClient/bin/Release/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json on: branch: master -notifications: - hipchat: - rooms: - secure: S6y3miMzrvRro+vhiuLjuyDm89l9mLbWbXT9Ak2fYorHWT+tGFrBQgoPB7veePkYkaIDAR5z+WF2amRnfKyesjdrLtJyDxAABKEV3X5ty1sIlaz+KK6QmEyK+krGUkUPAyM/7tZ1U7VDhXgxo0VNYhgT7jmFGQdLzupOdGZ7fI3/BA0kS8mDMNmIxjJyDhUama+P4ENCRMMYOs92McjCWBQe3Yss08gzBAzpnBQs5nBDyziz/Agevg2UVENwCiYX18hcz0xkoE84yKnSs+yrFdrK7fQR54k1wwM5yL3e0akw6BwdxoHcglIqxMIPHzZXAI77dxmDoZwjSCeT9H25FQ2wkIbjiduWhXsD+KFKDfmB3qc0HyU/ZPefUTkZBFtCQh18M0agNBvZ8IJaDDaNK6YnUVQ7RXpVy4TN8nRz4n5pv2w54QXjPtWVA1dU/iSzbKyAvhvourH6fTQs+rnLXzlJDpd96lYV6INNbobMpRAH40n8f/xljWpiwJmNK0QLlae8/RnijJ/nPOykA/ik75+ykxeebAqqvilO9ZKIPqtOR3ZEKmsFqDiOreQ3IVudZEEUj4mn8ysM5fFg1zfRpY6kL1iBhMZFHavRxtGXFIWcqtH1PYB7pi+c7oUAKHo6ntEk9KgQWDhEBXtRtTWGwvGS0lEKi3sNb0g3sZWhwtQ= - template: - - '%{repository} - Build %{build_number} on branch %{branch} by %{author}: %{message} - View on GitHub' - format: html + tags: true