forked from eddiejaoude/book-open-source-tips
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (25 loc) · 1.84 KB
/
Copy pathMakefile
File metadata and controls
35 lines (25 loc) · 1.84 KB
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
all: reset assets html pdf
reset:
rm -fr build/*
assets:
cp -r src/images/ build/images/
cp -r src/favicon.ico build/
html:
asciidoctor src/index.adoc -D build/
asciidoctor src/index-es.adoc -D build/
asciidoctor src/index-fil.adoc -D build/
pdf:
asciidoctor -r asciidoctor-pdf -b pdf -a pdf-style=config/pdf-theme.yml src/index.adoc -D build/
mv build/index.pdf build/open-source-tips.pdf
pipeline.version.startBuild:
curl -XPOST -H "Content-Type: application/json" -d '{"release":"v0.1.${TRAVIS_BUILD_NUMBER}"}' https://api-pipeline.dashboardhub.io/environments/f39a2d40-2045-11e8-a435-ade829eb4121/deployed/${DH_TOKEN}/startBuild
pipeline.version.finishBuild:
curl -XPOST -H "Content-Type: application/json" -d '{"release":"v0.1.${TRAVIS_BUILD_NUMBER}"}' https://api-pipeline.dashboardhub.io/environments/f39a2d40-2045-11e8-a435-ade829eb4121/deployed/${DH_TOKEN}/finishBuild
pipeline.version.failBuild:
curl -XPOST -H "Content-Type: application/json" -d '{"release":"v0.1.${TRAVIS_BUILD_NUMBER}"}' https://api-pipeline.dashboardhub.io/environments/f39a2d40-2045-11e8-a435-ade829eb4121/deployed/${DH_TOKEN}/failBuild
pipeline.version.startDeploy:
curl -XPOST -H "Content-Type: application/json" -d '{"release":"v0.1.${TRAVIS_BUILD_NUMBER}"}' https://api-pipeline.dashboardhub.io/environments/f39a2d40-2045-11e8-a435-ade829eb4121/deployed/${DH_TOKEN}/startDeploy
pipeline.version.finishDeploy:
curl -XPOST -H "Content-Type: application/json" -d '{"release":"v0.1.${TRAVIS_BUILD_NUMBER}"}' https://api-pipeline.dashboardhub.io/environments/f39a2d40-2045-11e8-a435-ade829eb4121/deployed/${DH_TOKEN}/finishDeploy
pipeline.version.failDeploy:
curl -XPOST -H "Content-Type: application/json" -d '{"release":"v0.1.${TRAVIS_BUILD_NUMBER}"}' https://api-pipeline.dashboardhub.io/environments/f39a2d40-2045-11e8-a435-ade829eb4121/deployed/${DH_TOKEN}/failDeploy