version: 0.0.0.{build}

shallow_clone: true

init:
  - ps: if ($env:APPVEYOR_REPO_TAG_NAME) { Update-AppveyorBuild -Version $env:APPVEYOR_REPO_TAG_NAME.Substring(1) }

platform:
  - Any CPU

configuration:
  - Release

matrix:
  fast_finish: true

assembly_info:
  patch: true
  file: AssemblyInfo.cs
  assembly_version: "{version}"
  assembly_file_version: "{version}"
  assembly_informational_version: "{version}"

cache:
  - packages -> **\packages.config

before_build:
  - ps: nuget restore Vsxmd.sln
  - ps: Vsxmd\Test.ps1 -Prepare

test_script:
  - ps: Vsxmd\Test.ps1 -Run

artifacts:
  - path: 'Vsxmd\**\*.nupkg'

nuget:
  account_feed: false
  project_feed: false
  disable_publish_on_pr: true


version: 0.0.0.{build}

shallow_clone: true

init:
  - ps: if ($env:APPVEYOR_REPO_TAG_NAME) { Update-AppveyorBuild -Version $env:APPVEYOR_REPO_TAG_NAME.Substring(1) }

platform:
  - Any CPU

configuration:
  - Release

matrix:
  fast_finish: true

assembly_info:
  patch: true
  file: AssemblyInfo.cs
  assembly_version: "{version}"
  assembly_file_version: "{version}"
  assembly_informational_version: "{version}"

cache:
  - packages -> **\packages.config

before_build:
  - ps: nuget restore Vsxmd.sln
  - ps: Vsxmd\Test.ps1 -Prepare

test_script:
  - ps: Vsxmd\Test.ps1 -Run

artifacts:
  - path: 'Vsxmd\**\*.nupkg'

nuget:
  account_feed: false
  project_feed: false
  disable_publish_on_pr: true

deploy:
  - release: v$(APPVEYOR_BUILD_VERSION)
    provider: GitHub
    draft: false
    prerelease: false
    auth_token:
      secure: cApkFZuYfz7loLotMfbhb53ZIfjjfbY7dr46eu6Q9+yAV+KuSGYGcVTG8Bgx8wka
    on:
      appveyor_repo_tag: true
  - provider: NuGet
    api_key:
      secure: iBKdOaX4b1BDwWzGKoqbHoJHyOAxL6EHCRIretKb16QRLm5l1nkaF+W0SGfuEfMY
    on:
      appveyor_repo_tag: true

Add back deployment to GitHub release.
Add back deployment to GitHub release.
