forked from adventuregamestudio/ags-manual
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (44 loc) · 2.01 KB
/
.travis.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
language: minimal
env:
- CHECKOUTDIR=/tmp/ags-manual.wiki
PANDOCVERSION=2.7.2
install:
- |
url=https://github.com/jgm/pandoc/releases/download/$PANDOCVERSION/pandoc-$PANDOCVERSION-linux.tar.gz
if [ -n "$url" ]; then
curl -fL "$url" | tar -xz -C /tmp --wildcards "pandoc-*/bin/pandoc" && export PANDOC=$(echo /tmp/pandoc-*/bin/pandoc)
else
exit 1
fi
before_script:
- (cd /tmp && git clone https://github.com/adventuregamestudio/ags-manual.wiki.git)
script:
- make source
- make -j $(getconf _NPROCESSORS_ONLN) html
- touch html/build/.nojekyll
before_deploy:
# run only once, the tasks executed prepares the files to be upload
# once a github tag is created, ideally using the release button
# saves the sources for being able to reproduce builds easily if needed
- |
if ! [ "$BEFORE_DEPLOY_RUN" ]; then
export BEFORE_DEPLOY_RUN=1;
zip ags-manual-wiki-md-source.zip $CHECKOUTDIR/*.md $CHECKOUTDIR/images/*
fi
deploy:
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard, marked secure
keep-history: true
on:
branch: master
local_dir: html/build/
- provider: releases
api_key:
secure: BiTaFctE9DMu2Oss/37KjHfwGS/V43zA92/6pf2P+BPT3cVSCoHqqPeL3jEXaT9TnxQt3J/Oh5P9PyKZiZ2qUCDLDOiF0U9dmgAEOzZwX2aGHvyBY6MxKmu0GJzn8jW5hMh9z28cbFjAWI+DGxaFSutCWnjtvW0LFzUcXCMIkUFyP4P5iBP5j8J4eZOCjCZTWeOY+lQvA/57x/q2HP4kLl/GByhyPRshYkuIjC3zooZQd8gjsVhOVccvLLwVk/BwK4KVS2g4iC+6Wdaf2OPRCFZ+FwhJ2XNdmVhS34yAQ0YVwAI2Cx8LbqIh0/Ul19WXz30iWdMxdEILsBm2y2ZUlaixrwiSEbLH4yhS0W3kSgKpMaX/nLbwU+/02lmOMDj5Z34vQ+x79Cqxl+ytA3yNXW3CEVhd2Lcoc0FQqG/cASgwGMnNBX/4VBbO/UR9u00vkffF+U9xxAIEDFqSA4pyPk1twQ9zlvGY3JeG4W0reZd1ORxIi+z1FOMra0QrUfk5BKfvNhWhr05ZJfokQZ//7h6YQr4skm/GhzVCwQXFcOlX7HvYyvtFaaDMIeuioSREqPLVEtdYRH1/vJds9aiIbBrSVlTIFuJ+Zhi52Wun1IOhiKwiUTsbH4+c3jt6nWEY8gDsLafmCImlsrpvno4Qstq0/eBItGYu2GfR5yycWIY=
file:
- "ags-manual-wiki-md-source.zip"
skip_cleanup: true
on:
branch: master
tags: true