aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxplshn <musicslave66@e.email>2025-01-09 23:01:23 -0300
committerxplshn <musicslave66@e.email>2025-01-09 23:01:23 -0300
commite55810cd3da87bd2d5aa157adbd30ed37aa5b183 (patch)
tree66a5ee3a00e50055d59682959d44f8b383c120aa
parent25a886b18f01478a32c0aae395b33a0266295585 (diff)
downloadalicelinux-e55810cd3da87bd2d5aa157adbd30ed37aa5b183.tar.gz
alicelinux-e55810cd3da87bd2d5aa157adbd30ed37aa5b183.zip
Create CI workflow to update [WWW] upon changes to *.md files
Signed-off-by: xplshn <musicslave66@e.email>
-rw-r--r--.gitignore1
-rw-r--r--.woodpecker.yml19
2 files changed, 20 insertions, 0 deletions
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