diff --git a/.woodpecker.yml b/.woodpecker.yml index 01ad7bd..d50b3f7 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -9,10 +9,27 @@ steps: fi mkdocs build + commit: + 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}" + push: - image: codeberg.org/xfix/plugin-codeberg-pages-deploy:1 + image: appleboy/drone-git-push + commands: settings: - folder: ${CI_WORKSPACE}/site + branch: pages + remote: git@gitnet.fr:murph/murph-doc.git + force: false + commit: false ssh_key: from_secret: ssh_key