forked from beakerbrowser/beaker
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathappveyor.yml
66 lines (54 loc) · 1.43 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
platform:
- x64
image: Visual Studio 2015
os: unstable
environment:
nodejs_version: "6.3.1"
cache:
- node_modules
- app\node_modules
- '%APPDATA%\npm-cache'
- '%USERPROFILE%\.electron'
install:
- ps: Install-Product node 6.3.1 x64
- node --version
- npm --version
- npm install npm@next -g
- npm install
# - npm run rebuild:only
- npm run build
build_script:
- node --version
- set NODE_ENV=production
- npm --version
- npm run release:windows
after_build:
- ps: Get-ChildItem .\*.zip | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
- dir dist
- echo dist\safe-browser-%APPVEYOR_REPO_TAG_NAME%-win
- cd dist
- dir
- rename win-unpacked safe-browser-%APPVEYOR_REPO_TAG_NAME%-win-x64
- 7z a safe-browser-%APPVEYOR_REPO_TAG_NAME%-win-x64.zip
- dir
- echo %APPVEYOR_REPO_TAG%
- echo %APPVEYOR_REPO_TAG_NAME%
artifacts:
- path: dist/*.zip
before_deploy:
# - dir dist
deploy:
release: $(appveyor_repo_tag_name)
tag: $(appveyor_repo_tag_name)
description: 'Safe Beaker Browser'
provider: GitHub
auth_token:
secure: yYDNGH+3V6HD/LemQHWRMtum9o98noPH8a02NFPJyuVKc+6vQWveTClb3+gRSnuB
# your encrypted token from GitHub
artifact: 'dist\*.zip'
draft: false
prerelease: false
on:
# branch: release # release branch only
appveyor_repo_tag: true # deploy on tag push only
# appveyor_repo_tag: true # deploy on tag push only