website

Unnamed repository; edit this file 'description' to name the repository.
git clone https://codeberg.org/emmett1/website
Log | Files | Refs | LICENSE

.woodpecker.yml (742B)


      1 steps:
      2   publish:
      3     image: alpine:edge
      4     environment:
      5       CBMAIL:
      6         from_secret: "mail"
      7       CBTOKEN:
      8         from_secret: "codeberg_token"
      9     commands:
     10       - apk add --no-cache git curl
     11       - chmod +x ./genhtml.sh
     12       - ./genhtml.sh
     13       - git config --global user.email "$${CBMAIL}"
     14       - git config --global user.name "Woodpecker CI"
     15       - git clone -b pages https://$${CBTOKEN}@codeberg.org/$CI_REPO.git $CI_REPO_NAME
     16       - cd $CI_REPO_NAME
     17       - git rm -r "*" || true # Don't fail if there's nothing to remove
     18       - cp -ar ../public/. ../.domains . || true
     19       - git add --all
     20       - git commit -m "Woodpecker CI ${CI_COMMIT_SHA} [SKIP CI]" --allow-empty
     21       - git push
     22     when:
     23       event: [push]
     24