skip_branch_with_pr: true

clone_depth: 1

only_commits:
  files:
    - src/
    - deps/

branches:
  only:
    - master

before_build:
  - cd C:\projects\lovr
  - git submodule update --init
  - md build
  - cd build
  - cmake -DCMAKE_BUILD_TYPE=%configuration% -A x64 ..

configuration: Release

build:
  project: build\lovr.sln
  verbosity: quiet

after_build:
  - cd C:\projects\lovr
  - 7z a lovr.zip C:\projects\lovr\build\Release\*.dll C:\projects\lovr\build\Release\lovr.exe

artifacts:
  - path: lovr.zip

deploy:
  provider: Webhook
  url: https://lovr.org/nightly
  on:
    branch: master
  authorization:
    secure: zbxwiHmtJRVP9FdiqxepLdLGjxhtpjVytb+yLSqrz+8Bl1bH6k5Zts809bLrEjzn
