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