vieter/.woodpecker/.docs.yml

47 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2022-04-30 23:36:52 +02:00
platform: 'linux/amd64'
branches:
exclude: [ main ]
pipeline:
docs:
image: 'klakegg/hugo:alpine'
group: 'generate'
commands:
- apk add git
- make docs
api-docs:
image: 'chewingbever/vlang:latest'
pull: true
group: 'generate'
commands:
- make api-docs
slate-docs:
image: 'slatedocs/slate'
group: 'generate'
2022-04-30 23:36:52 +02:00
commands:
- cd docs/api
- bundle exec middleman build --clean
archive:
image: 'alpine'
commands:
- cp -r docs/api/build docs/public/api
- 'cd docs/public && tar czvf ../../docs.tar.gz *'
2022-06-03 22:40:29 +02:00
- 'cd ../../src/_docs && tar czvf ../../api-docs.tar.gz *'
2022-04-30 23:36:52 +02:00
when:
event: push
branch: dev
deploy:
2022-04-30 23:36:52 +02:00
image: 'curlimages/curl'
secrets:
- 'site_api_key'
commands:
- 'curl -XPOST --fail -s -H "Authorization: Bearer $SITE_API_KEY" -T docs.tar.gz https://rustybever.be/api/deploy?dir=docs-vieter'
- 'curl -XPOST --fail -s -H "Authorization: Bearer $SITE_API_KEY" -T api-docs.tar.gz https://rustybever.be/api/deploy?dir=api-docs-vieter'
2022-04-30 23:36:52 +02:00
when:
event: push
branch: dev