Upload files to ''
This commit is contained in:
parent
1790284279
commit
fba77aa4b9
1 changed files with 29 additions and 0 deletions
29
mkdocs-build.txt
Normal file
29
mkdocs-build.txt
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
# build and deploy mkdocs to codeberg pages
|
||||||
|
# This assumes your code lives in one repo, and you have a <owner>/pages
|
||||||
|
# repo which will be used to host the built pages.
|
||||||
|
|
||||||
|
steps:
|
||||||
|
build-docs:
|
||||||
|
# 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 'carette.codeberg.page\npages.carette.codeberg.page' > .domains
|
||||||
|
|
||||||
|
deploy-docs:
|
||||||
|
# Push the resulting files to openfindata/pages
|
||||||
|
# to deploy
|
||||||
|
image: appleboy/drone-git-push
|
||||||
|
settings:
|
||||||
|
branch: main
|
||||||
|
remote: git@codeberg.org:carette/ll-hax-docs.git
|
||||||
|
force: true
|
||||||
|
commit: true
|
||||||
|
ssh_key:
|
||||||
|
# created using woodpecker cli with:
|
||||||
|
# woodpecker secret add -repository carette/ll-hax-docs \
|
||||||
|
# -name codeberg_push_from_ci_priv_key -value @<path_to_privkey_file>
|
||||||
|
from_secret: codeberg_push_from_ci_priv_key
|
Loading…
Add table
Reference in a new issue