babeld.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. when:
  2. - event: manual
  3. branch: main
  4. - event: push
  5. branch: main
  6. path: '.woodpecker/babeld.yaml'
  7. steps:
  8. - name: babeld
  9. environment:
  10. PROJECT_NAME: babeld
  11. PROJECT_PRETTY_NAME: babeld
  12. PROJECT_VERSION: 1.13.1
  13. FEED_REVISION: 3
  14. image: codeberg.org/mark22k/ci:latest
  15. pull: true
  16. commands:
  17. - GIT_BRANCH="babeld-$PROJECT_VERSION"
  18. - GIT_URL="https://github.com/jech/babeld.git"
  19. - . ./scripts/environment.sh
  20. - . ./scripts/install_dashing.sh
  21. - . ./scripts/download_from_git.sh
  22. - . ./scripts/prepare_docs_directory.sh
  23. - cd "$BASE_DIRECTORY/babeld"
  24. - make babeld.html
  25. - cp babeld.html "$DOCS_DIRECTORY"
  26. - |
  27. cat << EOF > "$DOCS_DIRECTORY/dashing.json"
  28. {
  29. "name": "babeld",
  30. "package": "babeld",
  31. "index": "babeld.html",
  32. "selectors": {
  33. "dl dt a": "Option",
  34. "h2": "Section",
  35. "title": "Guide"
  36. },
  37. "allowJS": false
  38. }
  39. EOF
  40. - cd "$FEED_DIRECTORY"
  41. - . ./scripts/build_dashing.sh
  42. - . ./scripts/create_docs_tarball.sh
  43. - . ./scripts/create_feed.sh
  44. - . ./scripts/publish.sh
  45. secrets:
  46. - codeberg_git_username
  47. - codeberg_git_password