summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2023-06-13 14:07:59 +0200
committerJustin Wernick <justin@worthe-it.co.za>2023-06-13 14:07:59 +0200
commit9a3cc964f9637e61028a7854e757e6a29a7113d6 (patch)
tree859835af2d4a0dd8b940cdc33895df185d71d6e6
parent5a400ad32dc61b030bb8d069ffcfe5da06aaf5b5 (diff)
Add a script to update the index file with the new docs
-rw-r--r--.woodpecker.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.woodpecker.yml b/.woodpecker.yml
index b7cf42d..2b404ad 100644
--- a/.woodpecker.yml
+++ b/.woodpecker.yml
@@ -19,7 +19,7 @@ pipeline:
- npm run docs
publish-pages:
- image: node:lts
+ image: rust:latest
secrets: [ cbtoken ]
commands:
- git config --global user.email "woodpecker@worthe-it.co.za"
@@ -27,6 +27,8 @@ pipeline:
- git clone -b pages https://$CBTOKEN@codeberg.org/$CI_REPO.git pages
- cp -r dist/docs "pages/$CI_COMMIT_TAG"
- cd pages
+ - cargo install cargo-script
+ - ./update-index.csh
- git add --all
- git commit -m "Woodpecker CI Generated Docs"
- git push