-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
33 lines (33 loc) · 1.78 KB
/
wercker.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
# Definició de la màquina mínima per executar node amb versió LTS
# This image does not contain the common packages contained in the default tag and only contains the minimal packages needed to
# run node. Unless you are working in an environment where only the Node.js image will be deployed and you have space
# constraints, we highly recommend using the default image of this repository.
box: node:8.14.1-slim
build-deploy:
steps:
# This step will download the specified version of Hugo and run this over the source code to generate the static version of
# your site. This can then automatically be deployed using other steps.
# Since version 1.9.0, the step has the latest two versions of Hugo already installed thereby skipping the download part of
# the step.
- arjen/hugo-build:
# Specifies the version of Hugo to be used, by default this is "0.30.2". It is recommended to set this, so you don't
# accidentally build you site with a version it isn't ready for. Due to Wercker not being able to properly handle 0.x version
# numbers, you will need to put quotes around the version number.
version: "0.50"
theme: "winning"
flags: "--destination output"
- install-packages:
packages: git ssh-client
- script:
name: pdf-generation
# https://github.com/Medium/phantomjs/issues/659
# https://github.com/Alex-Rose/fb-messenger-cli/issues/94#issuecomment-333047050
# https://github.com/marcbachmann/node-html-pdf/issues/35
code: |
sudo apt-get -qq update && sudo apt-get -qq -y install bzip2
sudo npm install html-pdf -g --unsafe-perm
sudo apt-get -y install libfontconfig
html-pdf output/index.html output/cv.pdf
- lukevivier/[email protected]:
token: $GIT_TOKEN
basedir: output