From e55810cd3da87bd2d5aa157adbd30ed37aa5b183 Mon Sep 17 00:00:00 2001 From: xplshn Date: Thu, 9 Jan 2025 23:01:23 -0300 Subject: Create CI workflow to update [WWW] upon changes to *.md files Signed-off-by: xplshn --- .gitignore | 1 + .woodpecker.yml | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.gitignore b/.gitignore index 9e3df07f..ca118603 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ *.tar.xz *.sha256sum *.pkglist +.m diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 00000000..73f8de23 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,19 @@ +# .woodpecker.yml +pipeline: + generate-html: + image: alpine:latest + when: + branch: main + event: [push, pull_request] + commands: + - apk add --no-cache pandoc git + - git config --global user.email "ci@alicelinux.emmett1.net" + - git config --global user.name "󰬭 [AliceLinux CI] " + - git fetch origin pages + - git checkout pages + - git merge main --allow-unrelated-histories -X theirs + - chmod +x genhtml.sh + - ./genhtml.sh + - git add . + - git commit -m "󰬭 [CI]  - Update pages" || echo "No changes to commit" + - git push origin pages -- cgit v1.2.3