CI: add job for deploying docs
This commit is contained in:
@@ -101,6 +101,19 @@ jobs:
|
|||||||
- checkout
|
- checkout
|
||||||
- run: git lfs fetch --all
|
- run: git lfs fetch --all
|
||||||
- run: cd docs && mkdocs build --clean
|
- run: cd docs && mkdocs build --clean
|
||||||
|
- persist_to_workspace:
|
||||||
|
root: .
|
||||||
|
paths:
|
||||||
|
- docs/site
|
||||||
|
|
||||||
|
deploy-docs:
|
||||||
|
working_directory: ~/alexanderzobnin/grafana-zabbix
|
||||||
|
docker:
|
||||||
|
- image: circleci/node:8
|
||||||
|
steps:
|
||||||
|
- attach_workspace:
|
||||||
|
at: .
|
||||||
|
- run: ls -lh docs/site
|
||||||
|
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
@@ -127,3 +140,7 @@ workflows:
|
|||||||
jobs:
|
jobs:
|
||||||
- build-docs:
|
- build-docs:
|
||||||
filters: *filter-docs
|
filters: *filter-docs
|
||||||
|
- deploy-docs:
|
||||||
|
requires:
|
||||||
|
- build-docs
|
||||||
|
filters: *filter-docs
|
||||||
|
|||||||
Reference in New Issue
Block a user