side_menu_doc/.woodpecker.yml
Simon Vieille 8e688039a3
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
update deployment steps
2024-01-04 21:57:01 +01:00

35 lines
989 B
YAML

steps:
build:
image: gitnet.fr/deblan/mkdocs
pull: true
commands:
- sed -i 's/# site_url/site_url/' mkdocs.yml
- sed -i 's,<!-- ci_scripts -->,<script async defer data-website-id="d4104cec-6e3d-41df-bf72-74a9297def23" src="https://umami.deblan.org/umami.js"></script>,' overrides/main.html
- mkdocs build
- git checkout mkdocs.yml
- git checkout overrides/main.html
update:
image: alpine/git
commands:
- git fetch --no-tags origin +refs/heads/pages
- git switch pages
- git config --global user.email ci@gitnet.fr
- git config --global user.name CI
- mv site /tmp/
- rm * -fr
- mv /tmp/site/* .
- git add .
- git commit -m "Build ${CI_BUILD_NUMBER}"
deploy:
image: appleboy/drone-git-push
commands:
settings:
branch: pages
remote: git@gitnet.fr:deblan/side_menu_doc.git
force: false
commit: false
ssh_key:
from_secret: ssh_key