steps: publish: image: alpine:edge environment: CBMAIL: from_secret: "mail" CBTOKEN: from_secret: "codeberg_token" commands: - apk add --no-cache git curl cmark - 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 - cd $CI_REPO_NAME - git rm -r "*" || true - cp -ar ../public/. ../.domains . || true - 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 core https://$${CBTOKEN}@codeberg.org/$CI_REPO.git $CI_REPO_NAME - cd $CI_REPO_NAME - git rm -r "*" || true - cp -ar ../repos/core/. . || true - 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 extra https://$${CBTOKEN}@codeberg.org/$CI_REPO.git $CI_REPO_NAME - cd $CI_REPO_NAME - git rm -r "*" || true - cp -ar ../repos/extra/. . || true - 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] branch: main