sequel.yaml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. when:
  2. - event: manual
  3. branch: main
  4. - event: push
  5. branch: main
  6. path: '.woodpecker/sequel.yaml'
  7. steps:
  8. - name: sequel
  9. environment:
  10. PROJECT_NAME: sequel
  11. PROJECT_PRETTY_NAME: sequel
  12. PROJECT_VERSION: 5.85.0
  13. FEED_REVISION: 1
  14. image: codeberg.org/mark22k/ci:latest
  15. pull: true
  16. commands:
  17. - GIT_BRANCH="$PROJECT_VERSION"
  18. - GIT_URL="https://github.com/jeremyevans/sequel.git"
  19. - . ./scripts/environment.sh
  20. # Install python tools
  21. - . ./scripts/install_dashing.sh
  22. # Build sequel docs
  23. - . ./scripts/download_from_git.sh
  24. - . ./scripts/prepare_docs_directory.sh
  25. - cd "$BASE_DIRECTORY/sequel/"
  26. - rake rdoc
  27. - cd rdoc
  28. - cp -r "site/"* "$DOCS_DIRECTORY"
  29. - |
  30. cat << EOF > "$DOCS_DIRECTORY/dashing.json"
  31. {
  32. "name": "Sequel",
  33. "package": "Sequel",
  34. "index": "index.html",
  35. "selectors": {
  36. "h1": "Guide",
  37. "h2": "Section"
  38. },
  39. "allowJS": false
  40. }
  41. EOF
  42. - cd "$FEED_DIRECTORY"
  43. - . ./scripts/build_dashing.sh
  44. - sqlite3 "$DOCS_DIRECTORY/sequel.docset/Contents/Resources/docSet.dsidx" "UPDATE searchIndex SET name = SUBSTR(name, 1, LENGTH(name) - 3) WHERE name LIKE '%¶ ↑';"
  45. # Build icons
  46. # old style
  47. - convert -resize 16x16 "$DOCS_DIRECTORY/img/logo.png" "$DOCS_DIRECTORY/sequel.docset/icon.png"
  48. - convert -resize 32x32 "$DOCS_DIRECTORY/img/logo.png" "$DOCS_DIRECTORY/sequel.docset/icon@2x.png"
  49. # new style
  50. # - magick _static/images/sequel-logo.png -resize 16x16 sequel.docset/icon.png
  51. # - magick _static/images/sequel-logo.png -resize 32x32 sequel.docset/icon@2x.png
  52. # Build tgz
  53. - . ./scripts/create_docs_tarball.sh
  54. - . ./scripts/create_feed.sh
  55. - . ./scripts/publish.sh
  56. secrets:
  57. - codeberg_git_username
  58. - codeberg_git_password