diff --git a/.woodpecker/docs.yml b/.woodpecker/docs.yml index 435028e..9400303 100644 --- a/.woodpecker/docs.yml +++ b/.woodpecker/docs.yml @@ -22,16 +22,18 @@ pipeline: slate-docs: image: 'slatedocs/slate' - pull: true group: 'generate' + # Slate requires a specific directory to run in + directory: '/srv/slate' commands: - - cd docs/api + - mv "${CI_WORKSPACE}/docs/api" source - bundle exec middleman build --clean --watcher-disable + - mv 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: