bird2.yaml 1.4 KB

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