diff --git a/.appveyor.cache b/.appveyor.cache deleted file mode 100644 index d00491fd7..000000000 --- a/.appveyor.cache +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/appveyor.yml b/.appveyor.yml similarity index 73% rename from appveyor.yml rename to .appveyor.yml index 8b475b4fe..e1788ea41 100644 --- a/appveyor.yml +++ b/.appveyor.yml @@ -16,41 +16,40 @@ install: - npm install -g npm@latest > Nul - npm config set msvs_version 2013 - npm install > NUL + - node --version + - npm --version + - npm test cache: - - '%APPDATA%\npm-cache -> .appveyor.cache' - - '%USERPROFILE%\.electron -> .appveyor.cache' - - 'node_modules -> .appveyor.cache' + - '%APPDATA%\npm-cache -> package.json' + - '%USERPROFILE%\.electron -> package.json' + - 'node_modules -> package.json' #---------------------------------# # tests configuration # #---------------------------------# -test_script: - - node --version - - npm --version - - npm test +build_script: + - ps: if($env:APPVEYOR_REPO_TAG -eq 'true') { npm run build-n-package:win } + +#---------------------------------# +# artifacts configuration # +#---------------------------------# + +artifacts: + - path: dist\win\* + name: dist #---------------------------------# # deployment configuration # #---------------------------------# -before_deploy: -- npm run build-n-package:win - -artifacts: - - path: 'dist\win\*' - name: dist - deploy: description: '' provider: GitHub auth_token: secure: Ffmgxn+wt5WSf/jgJ/L+/3mkUs4fn9Z5j4Dz73VATsgL14Rf/xUp2nOyE0ecow+1 artifact: dist - draft: false - prerelease: false - force_update: false on: branch: master appveyor_repo_tag: true