fix up build
This commit is contained in:
37
appveyor.yml
37
appveyor.yml
@@ -1,20 +1,23 @@
|
||||
configuration: Release
|
||||
version: 0.1.{build}
|
||||
nuget:
|
||||
account_feed: true
|
||||
project_feed: true
|
||||
|
||||
init:
|
||||
- git config --global core.autocrlf true
|
||||
|
||||
before_build:
|
||||
- ps: invoke-webrequest https://go.microsoft.com/fwlink/?LinkID=827524 -OutFile core.exe
|
||||
- ps: .\core.exe /install /quiet /norestart
|
||||
- ps: dotnet restore
|
||||
|
||||
image: Visual Studio 2017
|
||||
version: 1.0.{build}
|
||||
build_script:
|
||||
- ps: dotnet build .\src\TurboLinks.Net
|
||||
- ps: dotnet build .\src\TurboLinksExample
|
||||
|
||||
- ps: >-
|
||||
dotnet restore TurboLinks.Net.sln --source https://api.nuget.org/v3/index.json
|
||||
dotnet build TurboLinks.Net.sln
|
||||
if($env:APPVEYOR_REPO_TAG -eq "true")
|
||||
{
|
||||
dotnet pack src\TurboLinks.Net\TurboLinks.Net.csproj --configuration Release --output ..\..\output /p:Version=$env:APPVEYOR_REPO_TAG_NAME
|
||||
}
|
||||
else
|
||||
{
|
||||
dotnet pack src\TurboLinks.Net\TurboLinks.Net.csproj --configuration Release --output ..\..\output /p:Version=0.0.1-build-$env:APPVEYOR_BUILD_NUMBER
|
||||
}
|
||||
artifacts:
|
||||
- path: artifacts\bin\TurboLinks.Net\Release\*.nupkg
|
||||
- path: output\**.nupkg
|
||||
deploy:
|
||||
- provider: NuGet
|
||||
api_key:
|
||||
secure: //tKHlb2yqAtpxnR6p9IAtXwQNaq8UYYyIFSD0QVF3XnEasIxG2gTWdmWuG87fUX
|
||||
on:
|
||||
appveyor_repo_tag: true
|
||||
Reference in New Issue
Block a user