From 9a3cc964f9637e61028a7854e757e6a29a7113d6 Mon Sep 17 00:00:00 2001 From: Justin Wernick Date: Tue, 13 Jun 2023 14:07:59 +0200 Subject: Add a script to update the index file with the new docs --- .woodpecker.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3