environment:
    nodejs_version: "0.12"
    virustotal_apikey:
        secure: hvKv/Iat286vN6iH88eh1yesAgbq7XTXR+3/P37Jdn8EzUzmI3QIOWgsDi/80neS9vAmDf8UIWjSWUqBGqHn/I39it4p3Vaj+dhGN/mhaAU=

install:
    - ps: Install-Product node $env:nodejs_version
    - npm install
    - npm install -g bower
    - npm install -g gulp
    - bower install

build_script: gulp build
after_build:
    - gulp build-installer
    - 7z a -r LoginWars2.zip %APPVEYOR_BUILD_FOLDER%\build\LoginWars2-win32-x64
    - ps: curl -fsS -X POST "https://www.virustotal.com/vtapi/v2/file/scan" --form apikey=$env:virustotal_apikey --form file=LoginWars2Setup.exe

artifacts:
    - path: installer/*.nupkg
      name: nupkgs
    - path: installer/RELEASES
      name: release
    - path: installer/LoginWars2Setup.exe
      name: setup
    - path: LoginWars2.zip
      name: zip

deploy:
    provider: GitHub
    auth_token:
        secure: 3BXDg8DUFbAB7x2kUA7VSnx1dK8Pej/S2SOREIn4YieSaPFYQcT1z/po8DFqhyYm

    artifact: nupkgs, release, setup, zip

    description: "changelog coming soon..."
    draft: true
    prerelease: false
    on:
        appveyor_repo_tag: true

environment:
    nodejs_version: "0.12"

install:
    - ps: Install-Product node $env:nodejs_version
    - npm install
    - npm install -g bower
    - npm install -g gulp
    - bower install

build_script: gulp build
after_build:
    - gulp build-installer
    - 7z a -r LoginWars2.zip %APPVEYOR_BUILD_FOLDER%\build\LoginWars2-win32-x64

artifacts:
    - path: installer/*.nupkg
      name: nupkgs
    - path: installer/RELEASES
      name: release
    - path: installer/LoginWars2Setup.exe
      name: setup
    - path: LoginWars2.zip
      name: zip

deploy:
    provider: GitHub
    auth_token:
        secure: 3BXDg8DUFbAB7x2kUA7VSnx1dK8Pej/S2SOREIn4YieSaPFYQcT1z/po8DFqhyYm

    artifact: nupkgs, release, setup, zip

    description: "changelog coming soon..."
    draft: true
    prerelease: false
    on:
        appveyor_repo_tag: true

Revert "test virustotal integration to continious delivery process" because they do not allow files as big as mine :(
Revert "test virustotal integration to continious delivery process"
because they do not allow files as big as mine :(

This reverts commit 483266b8c874c9fcb4418b338d9d4f45385a26d6.
