From fba77aa4b9b4e422c0f808076cfbbc674950f7f0 Mon Sep 17 00:00:00 2001 From: carette Date: Fri, 14 Jul 2023 18:07:52 +0000 Subject: [PATCH] Upload files to '' --- mkdocs-build.txt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 mkdocs-build.txt diff --git a/mkdocs-build.txt b/mkdocs-build.txt new file mode 100644 index 0000000..38f8b93 --- /dev/null +++ b/mkdocs-build.txt @@ -0,0 +1,29 @@ +# build and deploy mkdocs to codeberg pages +# This assumes your code lives in one repo, and you have a /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 @ + from_secret: codeberg_push_from_ci_priv_key \ No newline at end of file