openssl.yaml 1.9 KB

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