aboutsummaryrefslogtreecommitdiff
path: root/.woodpecker.yml
diff options
context:
space:
mode:
Diffstat (limited to '.woodpecker.yml')
-rw-r--r--.woodpecker.yml13
1 files changed, 11 insertions, 2 deletions
diff --git a/.woodpecker.yml b/.woodpecker.yml
index ed13f402..e139e325 100644
--- a/.woodpecker.yml
+++ b/.woodpecker.yml
@@ -8,8 +8,8 @@ steps:
from_secret: "codeberg_token"
commands:
- apk add --no-cache git curl cmark
- - chmod +x ./buildsite.sh
- - ./buildsite.sh
+ - chmod +x ./utils/buildsite.sh
+ - ./utils/buildsite.sh
- git config --global user.email "$${CBMAIL}"
- git config --global user.name "Woodpecker CI"
- git clone -b pages https://$${CBTOKEN}@codeberg.org/$CI_REPO.git $CI_REPO_NAME
@@ -37,6 +37,15 @@ steps:
- git add --all
- git commit -m "Woodpecker CI ${CI_COMMIT_SHA} [SKIP CI]" --allow-empty
- git push
+ - cd ..
+ - rm -rf $CI_REPO_NAME
+ - git clone -b community https://$${CBTOKEN}@codeberg.org/$CI_REPO.git $CI_REPO_NAME
+ - cd $CI_REPO_NAME
+ - git rm -r "*" || true
+ - cp -ar ../repos/community/. . || true
+ - git add --all
+ - git commit -m "Woodpecker CI ${CI_COMMIT_SHA} [SKIP CI]" --allow-empty
+ - git push
when:
event: [push]