mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-22 14:02:49 +08:00
changes to get nuget packages publishing from app veyor
This commit is contained in:
parent
54167be973
commit
72f66f8d3a
45
Ocelot.nuspec
Normal file
45
Ocelot.nuspec
Normal file
@ -0,0 +1,45 @@
|
||||
<?xml version="1.0"?>
|
||||
<package >
|
||||
<metadata>
|
||||
<id>Ocelot</id>
|
||||
<version>1.0.0</version>
|
||||
<authors>Tom Pallister</authors>
|
||||
<owners>Tom Pallister</owners>
|
||||
<licenseUrl>https://github.com/TomPallister/Ocelot/blob/develop/LICENSE.md</licenseUrl>
|
||||
<projectUrl>https://github.com/TomPallister/Ocelot</projectUrl>
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<description>Ocelot Api Gateway</description>
|
||||
<releaseNotes>Latest Ocelot</releaseNotes>
|
||||
<copyright></copyright>
|
||||
<tags></tags>
|
||||
<dependencies>
|
||||
<dependency id="Microsoft.AspNetCore.Mvc" version="1.0.0" />
|
||||
<dependency id="Microsoft.AspNetCore.Server.IISIntegration" version="1.0.0" />
|
||||
<dependency id="Microsoft.AspNetCore.Server.Kestrel" version="1.0.0" />
|
||||
<dependency id="Microsoft.Extensions.Configuration.EnvironmentVariables" version="1.0.0" />
|
||||
<dependency id="Microsoft.Extensions.Configuration.FileExtensions" version="1.0.0" />
|
||||
<dependency id="Microsoft.Extensions.Configuration.Json" version="1.0.0" />
|
||||
<dependency id="Microsoft.Extensions.Logging" version="1.0.0" />
|
||||
<dependency id="Microsoft.Extensions.Logging.Console" version="1.0.0" />
|
||||
<dependency id="Microsoft.Extensions.Logging.Debug" version="1.0.0" />
|
||||
<dependency id="Microsoft.Extensions.Options.ConfigurationExtensions" version="1.0.0" />
|
||||
<dependency id="Microsoft.AspNetCore.Http" version="1.0.0" />
|
||||
<dependency id="System.Text.RegularExpressions" version="4.1.0" />
|
||||
<dependency id="YamlDotNet" version="3.9.0" />
|
||||
<dependency id="NetEscapades.Configuration.Yaml" version="1.2.0" />
|
||||
<dependency id="Microsoft.AspNetCore.Authentication.OAuth" version="1.0.0" />
|
||||
<dependency id="Microsoft.AspNetCore.Authentication.JwtBearer" version="1.0.0" />
|
||||
<dependency id="Microsoft.AspNetCore.Authentication.OpenIdConnect" version="1.0.0" />
|
||||
<dependency id="Microsoft.AspNetCore.Authentication.Cookies" version="1.0.0" />
|
||||
<dependency id="Microsoft.AspNetCore.Authentication.Google" version="1.0.0" />
|
||||
<dependency id="Microsoft.AspNetCore.Authentication.Facebook" version="1.0.0" />
|
||||
<dependency id="Microsoft.AspNetCore.Authentication.Twitter" version="1.0.0" />
|
||||
<dependency id="Microsoft.AspNetCore.Authentication.MicrosoftAccount" version="1.0.0" />
|
||||
<dependency id="Microsoft.AspNetCore.Authentication" version="1.0.0" />
|
||||
<dependency id="IdentityServer4.AccessTokenValidation" version="1.0.1-rc2" />
|
||||
</dependencies>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src=".\src\Ocelot\bin\Release\netcoreapp1.4\Ocelot.*" target="lib\dotnet" />
|
||||
</files>
|
||||
</package>
|
@ -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
|
||||
|
||||
|
@ -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'
|
@ -1,2 +1,3 @@
|
||||
./run-tests.bat
|
||||
./build.bat
|
||||
./push-to-nuget.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
|
||||
|
||||
|
||||
|
||||
|
11
push-to-nuget.bat
Normal file
11
push-to-nuget.bat
Normal file
@ -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
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "0.0.1-*",
|
||||
"version": "0.0.11-*",
|
||||
|
||||
"dependencies": {
|
||||
"Microsoft.NETCore.App": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user