image: Visual Studio 2017

skip_tags: true

install:
  - cinst msys2
  - set PATH=C:\msys64\usr\bin;%PATH%

build_script:
  - bash.exe -lc "cd $APPVEYOR_BUILD_FOLDER && ./etc/scripts/write_version_targets.sh"
  - ps: .\build.ps1 -VersionAndPublish (-Not $env:APPVEYOR_PULL_REQUEST_NUMBER)

test: off

artifacts:
- path: .\**\*.nupkg
  name: NuGet
  
nuget:
  disable_publish_on_pr: true 
  
deploy:  
- provider: NuGet
  api_key:
    secure: vrX7uDkbJriNmYo0JBoY5/UZu22Cxx/a/omaF+X824kAMFvNXODTFPqXqT3le8Nu
  on:
    branch: 
    - /release\/[0-9]\.[0-9]/

image: Visual Studio 2017

install:
  - cinst msys2
  - set PATH=C:\msys64\usr\bin;%PATH%

build_script:
  - bash.exe -lc "cd $APPVEYOR_BUILD_FOLDER && ./etc/scripts/write_version_targets.sh"
  - ps: .\build.ps1 -VersionAndPublish (-Not $env:APPVEYOR_PULL_REQUEST_NUMBER)

test: off

artifacts:
- path: .\**\*.nupkg
  name: NuGet
  
nuget:
  disable_publish_on_pr: true 
  
deploy:  
- provider: NuGet
  api_key:
    secure: vrX7uDkbJriNmYo0JBoY5/UZu22Cxx/a/omaF+X824kAMFvNXODTFPqXqT3le8Nu
  on:
    appveyor_repo_tag: true

Deploy only when building tag
Deploy only when building tag