<commit_before>version: 4.0.{build}-alpha
branches:
  only:
  - master
pull_requests:
  do_not_increment_build_number: true
image: Visual Studio 2017
configuration: Release
dotnet_csproj:
  patch: true
  file: '**\*.csproj'
  version: '{version}'
  package_version: '{version}'
  assembly_version: '{version}'
  file_version: '{version}'
  informational_version: '{version}'
before_build:
- cmd: >-
    dotnet restore

    cd KenticoInspector.WebApplication\ClientApp

    npm i

    npm run build

    cd ..\..\
build:
  project: KInspector.sln
  verbosity: minimal
before_package:
- ps: >-
    Write-Output ---Creating Artifacts---

    # Build web application

    Set-Location .\KenticoInspector.WebApplication

    dotnet publish KenticoInspector.WebApplication.csproj /p:PublishDir=..\publish -c Release -r win-x64 --self-contained true

    # Copy compiled front-end to publish folder

    Set-Location .\ClientApp

    mkdir ..\..\publish\ClientApp\dist

    Copy-Item ".\dist\*" -Recurse -Destination "..\..\publish\ClientApp\dist"

    # Go back to root

    Set-Location ..\..\

    # Create archive & push to Appveyor

    7z a KenticoInspector-$Env:APPVEYOR_BUILD_VERSION.zip .\publish\*

    appveyor PushArtifact KenticoInspector-$Env:APPVEYOR_BUILD_VERSION.zip<commit_msg>Add deploy config for releases<commit_after>version: 4.0.{build}-alpha
branches:
  only:
  - master
pull_requests:
  do_not_increment_build_number: true
image: Visual Studio 2017
configuration: Release
dotnet_csproj:
  patch: true
  file: '**\*.csproj'
  version: '{version}'
  package_version: '{version}'
  assembly_version: '{version}'
  file_version: '{version}'
  informational_version: '{version}'
before_build:
- cmd: >-
    dotnet restore

    cd KenticoInspector.WebApplication\ClientApp

    npm i

    npm run build

    cd ..\..\
build:
  project: KInspector.sln
  verbosity: minimal
before_package:
- ps: >-
    Write-Output ---Creating Artifacts---

    # Build web application

    Set-Location .\KenticoInspector.WebApplication

    dotnet publish KenticoInspector.WebApplication.csproj /p:PublishDir=..\publish -c Release -r win-x64 --self-contained true

    # Copy compiled front-end to publish folder

    Set-Location .\ClientApp

    mkdir ..\..\publish\ClientApp\dist

    Copy-Item ".\dist\*" -Recurse -Destination "..\..\publish\ClientApp\dist"

    # Go back to root

    Set-Location ..\..\

    # Create archive & push to Appveyor

    7z a KenticoInspector-$Env:APPVEYOR_BUILD_VERSION.zip .\publish\*

    appveyor PushArtifact KenticoInspector-$Env:APPVEYOR_BUILD_VERSION.zip
deploy:
- provider: Environment
  name: Kentico Inspector Releases
{'fraction_non_alphanumeric': 0.11654135338345864, 'fraction_numerical': 0.006766917293233083, 'mean_word_length': 3.2781350482315115, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7179486', 'n_tokens_mistral': 909, 'n_tokens_neox': 825, 'n_words': 206}