version: '{build}'

image: Visual Studio 2017
configuration:
  - Release
environment:
  PYTHON: C:\Python36-x64
install:
  - cmd: >-
      curl -LO https://aka.ms/vs/15/release/vs_community.exe

      vs_community.exe modify --installPath "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community" --add Microsoft.VisualStudio.Workload.Python --quiet --wait

      %PYTHON%\python -m pip install -U pip

      %PYTHON%\python -m pip install -r ManualGenerator\requirements.txt

before_build:
  - cmd: nuget restore
build:
  parallel: true
  verbosity: minimal
after_build:
  - cmd: >-
      xcopy ThScoreFileConverter\bin\%CONFIGURATION% publish /e /i /q

      xcopy ManualGenerator\_build\html publish\doc /e /i /q

      xcopy template publish\template /e /i /q

artifacts:
  - path: publish
    name: ThScoreFileConverter

deploy:
  provider: GitHub
  auth_token:
    secure: XBLZ1KuCOmvayGOFMZwYC+QyZxCmr0og6vKt53trP9I3WgF77pN+aVZvim2UP2Dm
  description: ''
  on:
    appveyor_repo_tag: true

version: '{build}'

image: Visual Studio 2017
configuration:
  - Release
environment:
  PYTHON: C:\Python36-x64
install:
  - cmd: curl -LO https://aka.ms/vs/15/release/vs_community.exe
  - cmd: vs_community.exe modify --installPath "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community" --add Microsoft.VisualStudio.Workload.Python --quiet --wait
  - cmd: set PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%
  - cmd: python --version
  - cmd: python -m pip install -U pip
  - cmd: python -m pip install -r ManualGenerator\requirements.txt

before_build:
  - cmd: nuget restore
build:
  parallel: true
  verbosity: minimal
after_build:
  - cmd: xcopy ThScoreFileConverter\bin\%CONFIGURATION% publish /e /i /q
  - cmd: xcopy ManualGenerator\_build\html publish\doc /e /i /q
  - cmd: xcopy template publish\template /e /i /q

artifacts:
  - path: publish
    name: ThScoreFileConverter

deploy:
  provider: GitHub
  auth_token:
    secure: XBLZ1KuCOmvayGOFMZwYC+QyZxCmr0og6vKt53trP9I3WgF77pN+aVZvim2UP2Dm
  description: ''
  on:
    appveyor_repo_tag: true

Add Python path to PATH for AppVeyor
Add Python path to PATH for AppVeyor

and simplify appveyor.yml
