version: '{build}'

branches:
  only:
  - master
skip_non_tags: true

environment:
  py: python3
  vlc: without-vlc
  matrix:
  - arch: x86_64
  - arch: i686

build_script:
- cmd: if x%arch% == xx86_64 (set mingw=mingw64) else (set mingw=mingw32)
- cmd: C:\msys64\msys2_shell.cmd -%mingw% -defterm -here -no-start -c "pacman -Syu --noprogressbar --noconfirm"
- cmd: C:\msys64\msys2_shell.cmd -%mingw% -defterm -here -no-start scripts\build_msi_mingw.sh

artifacts:
- path: dist/*


deploy:
- provider: GitHub
  tag: $(appveyor_repo_tag_name)
  description: Automated upload of windows binaries
  auth_token:
    secure: 99OQhliIMiV/Z1/kuZQ3TxR55Qb7Y2zaD7ZV6/JUaUGDbAxHzep97/yBLfM21Jzw
  draft: true
  force_update: false
