add ci to deploy on gitnet.page
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Simon Vieille 2024-01-23 13:14:24 +01:00
parent 9cc7575277
commit 7afc3c4933
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -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