diff --git a/Ocelot.nuspec b/Ocelot.nuspec new file mode 100644 index 00000000..3b30448e --- /dev/null +++ b/Ocelot.nuspec @@ -0,0 +1,45 @@ + + + + Ocelot + 1.0.0 + Tom Pallister + Tom Pallister + https://github.com/TomPallister/Ocelot/blob/develop/LICENSE.md + https://github.com/TomPallister/Ocelot + false + Ocelot Api Gateway + Latest Ocelot + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/README.md b/README.md index 18f2f176..f08e7ecf 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ to do this. # How to use -Using nuget `Install-Package Ocelot -Version 0.0.1` +Using nuget `Install-Package Ocelot -Pre` # Configuration diff --git a/appveyor.yml b/appveyor.yml index 410c858e..207de33a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -6,7 +6,7 @@ build_script: - build.bat test_script: - run-tests.bat -artifacts: -- path: artifacts\**\*.* +after_build: +- push-to-nuget.bat 1.0.{build}-rc1 cache: - '%USERPROFILE%\.nuget\packages' \ No newline at end of file diff --git a/build-and-run-tests.bat b/build-and-run-tests.bat index 764682b6..7f2a586e 100644 --- a/build-and-run-tests.bat +++ b/build-and-run-tests.bat @@ -1,2 +1,3 @@ ./run-tests.bat -./build.bat \ No newline at end of file +./build.bat +./push-to-nuget.bat \ No newline at end of file diff --git a/build.bat b/build.bat index a7866f1d..656515d4 100644 --- a/build.bat +++ b/build.bat @@ -2,9 +2,7 @@ echo ------------------------- echo Building Ocelot dotnet restore src/Ocelot -dotnet build src/Ocelot -dotnet publish src/Ocelot -o artifacts/ -dotnet pack src/Ocelot/project.json --output nupkgs/ +dotnet build src/Ocelot -c Release diff --git a/push-to-nuget.bat b/push-to-nuget.bat new file mode 100644 index 00000000..50daa03c --- /dev/null +++ b/push-to-nuget.bat @@ -0,0 +1,11 @@ +echo ------------------------- + +echo Packing Ocelot Version %1 +nuget pack .\Ocelot.nuspec -version %1 + +echo Publishing Ocelot + nuget push Ocelot.%1.nupkg -ApiKey adc6c39d-ae94-496c-823e-b96f64ee23ff -Source https://www.nuget.org/api/v2/package + + + + diff --git a/src/Ocelot/project.json b/src/Ocelot/project.json index be863a69..3a0bee2d 100644 --- a/src/Ocelot/project.json +++ b/src/Ocelot/project.json @@ -1,5 +1,5 @@ { - "version": "0.0.1-*", + "version": "0.0.11-*", "dependencies": { "Microsoft.NETCore.App": {