Compare commits

..

1 commit

Author SHA1 Message Date
b0c30c59eb
fix(ci): correct image for generating slate docs
Some checks failed
ci/woodpecker/pr/test Pipeline is pending
ci/woodpecker/pr/lint Pipeline failed
ci/woodpecker/pr/docs Pipeline failed
ci/woodpecker/pr/docker unknown status
ci/woodpecker/pr/man unknown status
ci/woodpecker/pr/build Pipeline failed
2023-02-16 13:28:06 +01:00

View file

@ -21,17 +21,20 @@ pipeline:
- make api-docs
slate-docs:
image: 'slatedocs/slate:v2.13.0'
image: 'slatedocs/slate'
group: 'generate'
# Slate requires a specific directory to run in
commands:
- cd docs/api
- bundle exec middleman build --clean
- rm -rf /srv/slate/source
- mv "$CI_WORKSPACE/docs/api" /srv/slate/source
- cd /srv/slate
- /srv/slate/slate.sh build
- mv /srv/slate/build "$CI_WORKSPACE/docs/api-build"
archive:
image: 'alpine'
commands:
- cp -r docs/api/build docs/public/api
- cp -r docs/api-build docs/public/api
- 'cd docs/public && tar czvf ../../docs.tar.gz *'
- 'cd ../../src/_docs && tar czvf ../../api-docs.tar.gz *'
when: