bird.yaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. when:
  2. - event: manual
  3. branch: main
  4. - event: push
  5. branch: main
  6. path: '.woodpecker/bird.yaml'
  7. steps:
  8. - name: bird
  9. environment:
  10. PROJECT_NAME: bird
  11. PROJECT_PRETTY_NAME: bird
  12. PROJECT_VERSION: 2.15.1
  13. FEED_REVISION: 3
  14. image: codeberg.org/mark22k/ci:latest
  15. pull: true
  16. commands:
  17. - GIT_BRANCH="v$PROJECT_VERSION"
  18. - GIT_URL="https://gitlab.nic.cz/labs/bird.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/bird"
  24. - autoreconf
  25. - ./configure
  26. - make docs
  27. - cp ./obj/doc/*.html "$DOCS_DIRECTORY"
  28. - |
  29. cat << EOF > "$DOCS_DIRECTORY/dashing.json"
  30. {
  31. "name": "bird",
  32. "package": "bird",
  33. "index": "bird.html",
  34. "selectors": {
  35. "dt code": "Option",
  36. "h2": "Section",
  37. "title": "Guide"
  38. },
  39. "allowJS": false
  40. }
  41. EOF
  42. - cd "$FEED_DIRECTORY"
  43. - . ./scripts/build_dashing.sh
  44. - . ./scripts/create_docs_tarball.sh
  45. - . ./scripts/create_feed.sh
  46. - . ./scripts/publish.sh
  47. secrets:
  48. - codeberg_git_username
  49. - codeberg_git_password