sa6anw.se/.drone.yml

41 lines
798 B
YAML

---
kind: pipeline
type: docker
name: build
clone:
depth: 0
steps:
- name: clean-language-blocks
image: python:3.11
commands:
- pip install -U pip
- pip install pyyaml
- python clean_language_blocks.py
- mkdir -p docs/assets docs/overrides docs/stylesheets
- cp -r docs_en/assets docs/assets || true
- cp -r docs_en/overrides docs/overrides || true
- cp -r docs_en/stylesheets docs/stylesheets || true
- name: build
image: squidfunk/mkdocs-material:7.1.9
volumes:
- name: site
path: /site
- name: docs
path: /docs
commands:
- pip install -U -r ./requirements.txt
- mkdocs build
- cp -r site/ /site
- chmod -R 777 /site
- cp -r docs /docs
volumes:
- name: site
host:
path: /root/sa6anw
- name: docs
host:
path: /root/sa6anw