summaryrefslogtreecommitdiff
path: root/contrib/ci/jobs/0-build/build-docs.sh
blob: 43152df960be69f24513e2db1082f8fba20f4bb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

set -exou

make html
make latexpdf

# Publish to docs.taler.net if on master branch
if [[ ${CI_GIT_BRANCH} = "master" ]]; then
	rm -rf /artifacts/docs_build
	
	mkdir -p /artifacts/docs_build/docs/html/
	mkdir -p /artifacts/docs_build/docs/pdf/
	
	cp -r _build/html/* /artifacts/docs_build/docs/html/
	cp -r _build/latex/*.pdf /artifacts/docs_build/docs/pdf/
fi