-
-
Notifications
You must be signed in to change notification settings - Fork 132
/
.appveyor.yml
63 lines (63 loc) · 1.89 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
image: Visual Studio 2022
version: '{build}'
init:
- 'git config --global core.autocrlf true'
branches:
only:
- master
- develop
skip_commits:
files:
- LICENSE
- README.md
environment:
# nodejs_version: 18
ruby_version: 32
install:
# - ps: 'Install-Product node $env:nodejs_version'
- 'mkdir C:\Users\appveyor\AppData\Roaming\npm'
- 'node --version && npm --version'
- 'npx antora -v'
- 'npm i @antora/lunr-extension'
- 'set PATH=C:\Ruby%ruby_version%\bin;%PATH%'
- 'ruby -v && gem -v'
- 'gem install asciidoctor-epub3'
- 'asciidoctor-epub3 -v'
- 'gem install asciidoctor-pdf'
- 'asciidoctor-pdf -v'
before_build:
- 'if exist build rd /Q /S build'
build_script:
- 'npx antora antora-playbook.yml'
- 'asciidoctor-epub3 -D output docs/modules/ROOT/book.adoc -t'
- 'asciidoctor-epub3 -o output/book-ctf.epub -a is_ctf=1 docs/modules/ROOT/book.adoc -t'
- 'asciidoctor-pdf -D output -a compress -a pdf-theme=basic -a pdf-themesdir=resources/themes -a pdf-fontsdir=resources/fonts docs/modules/ROOT/book.adoc -t'
- 'asciidoctor-pdf -o output/book-ctf.pdf -a is_ctf=1 -a compress -a pdf-theme=basic -a pdf-themesdir=resources/themes -a pdf-fontsdir=resources/fonts docs/modules/ROOT/book.adoc -t'
test: off
artifacts:
- path: 'build'
- path: 'output/book.epub'
- path: 'output/book-ctf.epub'
- path: 'output/book.pdf'
- path: 'output/book-ctf.pdf'
deploy:
provider: FTP
protocol: sftp
host: ssh.strato.de
username: kimminich.de
password:
secure: Vu/o5fi8cCRsc9VmD4B/Xg==
folder: pwning-juice-shop/antora
application: build.zip
on:
branch:
- master
- develop
notifications:
-
provider: Slack
incoming_webhook:
secure: KzO8e88B0LKqAI0BQM6lNhCIn9rxAava3AcdVJDyTw420OLIAlK+qzzbLXaR0jSH9zIJz9zu0iGS1iaqu9Co+6owYUrHJlBGrUZ/lZNCsDo=
on_build_success: false
on_build_failure: false
on_build_status_changed: true