image: Visual Studio 2019
branches:
  only:
  - master
  - develop
  - /release\/.+/
install:
  - cinst gitversion.portable -y
  - ps: dotnet tool install --global dotnet-setversion
before_build:
  - nuget restore
  - ps: $env:VERSION=$(gitversion /showvariable NuGetVersionV2)
build_script:
  - ps: dotnet restore
  - ps: cd src/dotnet-setversion; setversion $env:VERSION; dotnet pack -c Release -o release/; cd ../..
before_test:
  - ps: cd test/integration;
test_script:
  - ps: dotnet test -c Release;
after_test:
  - ps: cd ../..
artifacts:
  path: src/dotnet-setversion/release/*.nupkg
  name: NuGet packages
deploy:
  provider: NuGet
  skip_symbols: false
  api_key:
    secure: u6wyCWr7El0iC167KlsklNSFw5xXBq3WPgegevdthWJfGRHQlCrcxc7AikJh+ePS
  artifact: NuGet packages
  on:
    branch: master
image: Visual Studio 2019
branches:
  only:
  - master
  - develop
  - /release\/.+/
install:
  - cinst gitversion.portable -y
  - ps: dotnet tool install --global dotnet-setversion
before_build:
  - nuget restore
  - ps: $env:VERSION=$(gitversion /showvariable NuGetVersionV2)
build_script:
  - ps: dotnet restore
  - ps: cd src/dotnet-setversion; setversion $env:VERSION; dotnet pack -c Release -o release/; cd ../..
before_test:
  - ps: cd test/integration;
test_script:
  - ps: dotnet test -c Release;
after_test:
  - ps: cd ../..
artifacts:
  path: src/dotnet-setversion/release/*.nupkg
  name: NuGet packages
deploy:
  provider: NuGet
  skip_symbols: false
  api_key:
    secure: sni+4W9xw0cF2mAoapyNeS5PHw6C+NJ3ADKDpVWTkC6Cibrj9iPYpwFnFiXY3o8k
  artifact: NuGet packages
  on:
    branch: master
Replace expired NuGet API key
Replace expired NuGet API key

