forked from juice-shop/pwning-juice-shop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
64 lines (64 loc) · 1.58 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
version: '{build}'
init:
- 'git config --global core.autocrlf true'
branches:
only:
- master
- develop
skip_commits:
files:
- LICENSE
environment:
nodejs_version: 10
platform:
- x64
install:
- ps: 'Install-Product node $env:nodejs_version $env:platform'
- 'node --version && npm --version'
- 'npm i -g gitbook-cli'
- 'choco install calibre'
- 'refreshenv'
- 'npm i -g [email protected]'
build_script:
- 'if exist _book rd /Q /S _book'
- 'gitbook install'
- 'gitbook build'
- 'gitbook pdf ./ ./juice-shop.pdf'
- 'gitbook mobi ./ ./juice-shop.mobi'
- 'gitbook epub ./ ./juice-shop.epub'
- 'cp ./book-ctf.json ./book.json'
- 'cp ./cover-ctf.jpg ./cover.jpg'
- 'cp ./cover-ctf_small.jpg ./cover_small.jpg'
- 'gitbook pdf ./ ./juice-shop-ctf.pdf'
- 'gitbook mobi ./ ./juice-shop-ctf.mobi'
- 'gitbook epub ./ ./juice-shop-ctf.epub'
test: off
artifacts:
- path: '*.pdf'
- path: '*.mobi'
- path: '*.epub'
- path: '_book'
deploy:
provider: FTP
protocol: sftp
host: ssh.strato.de
username: kimminich.de
password:
secure: Vu/o5fi8cCRsc9VmD4B/Xg==
folder: pwning-juice-shop
application: _book.zip
on:
branch: master
notifications:
-
provider: Webhook
url:
secure: c4xwvfA2YpTyASkpasFt2hJalN+xy/+cM/0l4sD1NX/OU2wVLtnmFO0tkWF2M/XRIT43etP3fFr6vlXpC6cmPw==
method: GET
-
provider: Slack
incoming_webhook:
secure: KzO8e88B0LKqAI0BQM6lNhCIn9rxAava3AcdVJDyTw420OLIAlK+qzzbLXaR0jSH9zIJz9zu0iGS1iaqu9Co+6owYUrHJlBGrUZ/lZNCsDo=
on_build_success: false
on_build_failure: false
on_build_status_changed: true