Merge pull request 'states/2024.06' (#17) from states/2024.06 into main
continuous-integration/drone/push Build is passing Details

Reviewed-on: #17
states/2024.07
thest1tch 7 months ago
commit dd13eb9833

@ -198,7 +198,7 @@ nav:
- Split-DNS: network/mikrotik/split-dns.md - Split-DNS: network/mikrotik/split-dns.md
- Hairpin NAT: network/mikrotik/hairpin-nat.md - Hairpin NAT: network/mikrotik/hairpin-nat.md
- UPnP: network/mikrotik/upnp.md - UPnP: network/mikrotik/upnp.md
- Обход блокировок: network/mikrotik/unblock-site.md #- Обход блокировок: network/mikrotik/unblock-site.md
- Ubiquiti: - Ubiquiti:
- Добавление новой точки: network/ubi/add-new-ap.md - Добавление новой точки: network/ubi/add-new-ap.md
- Ошибка обновления: network/ubi/failed-update.md - Ошибка обновления: network/ubi/failed-update.md

@ -1,3 +1,36 @@
steps: steps:
buildDocs: build-docs:
image: woodpeckerci/plugin-mkdocs:latest # build the docs in /docs with mkdocs and
# add the .domains file for codeberg pages
image: squidfunk/mkdocs-material
commands:
- mkdocs build -f ./mkdocs.yml -d docs_build
- git switch --orphan pages
- mv docs_build/* .
- echo -e 'openfindata.org\nopenfindata.codeberg.page\npages.openfindata.codeberg.page' > .domains
when:
path:
include:
- 'mkdocs.yml'
- 'docs/**'
deploy-docs:
# Push the resulting files to openfindata/pages
# to deploy
name: Push built docs to codeberg pages
image: appleboy/drone-git-push
settings:
branch: main
remote: git@codeberg.org:openfindata/pages.git
force: true
commit: true
ssh_key:
# created using woodpecker cli with:
# woodpecker secret add -repository openfindata/openfindata \
# -name codeberg_push_from_ci_priv_key -value @<path_to_privkey_file>
from_secret: codeberg_push_from_ci_priv_key
when:
path:
include:
- 'mkdocs.yml'
- 'docs/**'
Loading…
Cancel
Save