version: 11.0.{build}
image: Visual Studio 2017
configuration: Release
install:
- ps: >-
    cd src

    nuget restore Scriban.sln

    $env:SCRIBAN_BUILD_NUMBER = ([int]$env:APPVEYOR_BUILD_NUMBER).ToString("000")

    $env:appveyor_nuget_push = 'false'

    if(-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) {
      if($env:appveyor_repo_tag -eq 'True') {
        if($env:appveyor_repo_tag_name -match '^v[0-9]') {
           $env:appveyor_nuget_push = 'true'
        }
      }
    }
build:
  project: src/Scriban.sln
  verbosity: minimal
before_package:
- cmd: >-
     msbuild /t:pack /p:Configuration=Release Scriban/Scriban.csproj

     msbuild /t:Clean Scriban/Scriban.csproj
     
     msbuild /t:pack /p:Configuration=Release;SignAssembly=true Scriban/Scriban.csproj
artifacts:
- path: src\Scriban\Bin\Release\*.nupkg
  name: Scriban Nugets
deploy:
- provider: NuGet
  api_key:
    secure: 7cthHh+wYWZjhqxaxR6QObRaRnstvFkQOY7MkxIsC5kpQEBlKZXuinf0IybbYxJt
  on:
    appveyor_nuget_push: true
version: 11.0.{build}
image: Visual Studio 2017
configuration: Release
install:
- ps: >-
    cd src

    nuget restore Scriban.sln

    $env:SCRIBAN_BUILD_NUMBER = ([int]$env:APPVEYOR_BUILD_NUMBER).ToString("000")

    $env:appveyor_nuget_push = 'false'

    if(-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) {
      if($env:appveyor_repo_tag -eq 'True') {
        if($env:appveyor_repo_tag_name -match '^[0-9]') {
           $env:appveyor_nuget_push = 'true'
        }
      }
    }
build:
  project: src/Scriban.sln
  verbosity: minimal
before_package:
- cmd: >-
     msbuild /t:pack /p:Configuration=Release Scriban/Scriban.csproj

     msbuild /t:Clean Scriban/Scriban.csproj
     
     msbuild /t:pack /p:Configuration=Release;SignAssembly=true Scriban/Scriban.csproj
artifacts:
- path: src\Scriban\Bin\Release\*.nupkg
  name: Scriban Nugets
deploy:
- provider: NuGet
  api_key:
    secure: 7cthHh+wYWZjhqxaxR6QObRaRnstvFkQOY7MkxIsC5kpQEBlKZXuinf0IybbYxJt
  on:
    appveyor_nuget_push: true
Allow to tag version directly without v prefix
Allow to tag version directly without v prefix
