sequel.yaml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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.87.0
  13. FEED_REVISION: 2
  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="$PROJECT_VERSION"
  22. - GIT_URL="https://github.com/jeremyevans/sequel.git"
  23. - . ./scripts/environment.sh
  24. # Install python tools
  25. - . ./scripts/install_dashing.sh
  26. # Build sequel docs
  27. - . ./scripts/download_from_git.sh
  28. - . ./scripts/prepare_docs_directory.sh
  29. - cd "$BASE_DIRECTORY/sequel/"
  30. - rake rdoc
  31. - cd rdoc
  32. - cp -r * "$DOCS_DIRECTORY"
  33. - |
  34. cat << EOF > "$DOCS_DIRECTORY/dashing.json"
  35. {
  36. "name": "Sequel",
  37. "package": "Sequel",
  38. "index": "index.html",
  39. "selectors": {
  40. "h1": "Guide",
  41. "h2": "Section"
  42. },
  43. "allowJS": false
  44. }
  45. EOF
  46. - cd "$FEED_DIRECTORY"
  47. - . ./scripts/build_dashing.sh
  48. - sqlite3 "$DOCS_DIRECTORY/Sequel.docset/Contents/Resources/docSet.dsidx" "UPDATE searchIndex SET name = SUBSTR(name, 1, LENGTH(name) - 3) WHERE name LIKE '%¶ ↑';"
  49. # Build icons
  50. # old style
  51. # - convert -resize 16x16 "$DOCS_DIRECTORY/img/logo.png" "$DOCS_DIRECTORY/sequel.docset/icon.png"
  52. # - convert -resize 32x32 "$DOCS_DIRECTORY/img/logo.png" "$DOCS_DIRECTORY/sequel.docset/icon@2x.png"
  53. # new style
  54. # - magick _static/images/sequel-logo.png -resize 16x16 sequel.docset/icon.png
  55. # - magick _static/images/sequel-logo.png -resize 32x32 sequel.docset/icon@2x.png
  56. # Build tgz
  57. - . ./scripts/create_docs_tarball.sh
  58. - . ./scripts/create_feed.sh
  59. - . ./scripts/publish.sh