-
Notifications
You must be signed in to change notification settings - Fork 1
/
.drone.yml
36 lines (34 loc) · 1.08 KB
/
.drone.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
pipeline:
hugo:
image: webhippie/hugo:latest
commands:
- "[ ! -d themes ] && mkdir themes && git clone https://github.com/matcornic/hugo-theme-learn.git themes/hugo-theme-learn"
- wget https://github.com/gohugoio/hugo/releases/download/v0.40.3/hugo_0.40.3_Linux-64bit.tar.gz -O -|tar -xzv
- ./hugo
build-docs:
image: fpfis/httpd-php-dev:7.1
commands:
- apt-get update && apt-get install -y graphviz rsync
- composer global require hirak/prestissimo --ansi
- composer install --ansi
- cd phpdoc
- composer install --ansi
- ../vendor/bin/phpdoc --ansi
- find doc/ -name '*.dat' -delete
- rsync -a doc/ ../public/libs/
volumes:
- /cache:/cache
deploy-site:
image: fpfis/drone-plugin-git-deploy
source: public
target_repo: [email protected]:fpfis/public-documentation.git
target_folder: deployed
clean: true
secrets: [ deploy_key ]
message: "Published ${DRONE_COMMIT_SHA} [CI SKIP]"
target_branch: gh-pages
excludes:
- CNAME
when:
event: push
branch: master