Update build script for new nuget retore

This commit is contained in:
bao-qian 2015-11-04 00:12:40 +00:00
parent b9b59ac2e0
commit 8a78e4e9f4

View File

@ -1,35 +1,36 @@
version: 1.2.0.{build} version: 1.2.0.{build}
configuration: branches:
Release only:
- master
os: Visual Studio 2015
configuration: Release
platform: Any CPU
assembly_info: assembly_info:
patch: true patch: true
file: AssemblyInfo.* file: AssemblyInfo.*
assembly_version: "{version}" assembly_version: 1.2.0
assembly_file_version: "{version}" assembly_file_version: '{version}'
assembly_informational_version: "{version}" assembly_informational_version: '{version}-$(APPVEYOR_REPO_COMMIT)'
before_build:
- ps: nuget restore
build: build:
project: Wox.sln project: Wox.sln
publish_nuget: true
after_build:
- cmd: .\deploy\UpdateGenerator\build.bat
after_test: after_test:
- ps: .\deploy\nuget\pack.ps1 - ps: .\deploy\nuget\pack.ps1
- cmd: .\deploy\UpdateGenerator\build.bat
deploy:
provider: NuGet
api_key:
secure: yybUOFgBuGVpbmOVZxsurC8OpkClzt9dR+/54WpMWcq6b6oyMatciaelRPnXsjRn
artifact: nugetpackage
on:
branch: master
artifacts: artifacts:
- path: Output\Release - path: Output\Release
name: release-binary name: release-binary
- path: '*.nupkg'
- path: '*.nupkg' name: nugetpackage
name: nugetpackage - path: Output\Update
name: update-binary
- path: Output\Update deploy:
name: update-binary - provider: NuGet
api_key:
secure: AMF+zWfGP+02wq2u33PfSyCI2AbD+eek1ljd9q6zs0qEPMP+YwVF5mF9X1+XJD4wPItJB+S8h1AANUowXgfpd29aaYNmS73HWgaL6fqnN2U=
artifact: nugetpackage
on:
branch: master