xca.yaml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. when:
  2. - event: manual
  3. branch: main
  4. - event: push
  5. branch: main
  6. path: '.woodpecker/xca.yaml'
  7. steps:
  8. - name: xca
  9. environment:
  10. PROJECT_NAME: xca
  11. PROJECT_PRETTY_NAME: xca
  12. PROJECT_VERSION: 2.8.0
  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="RELEASE.$PROJECT_VERSION"
  22. - GIT_URL="https://github.com/chris2511/xca.git"
  23. - . ./scripts/environment.sh
  24. # Install python tools
  25. - . ./scripts/install_doc2dash.sh
  26. - . ./scripts/install_sphinx.sh
  27. - pipx inject sphinx sphinxcontrib-qthelp
  28. # Build xca docs
  29. - . ./scripts/download_from_git.sh
  30. - cd "$BASE_DIRECTORY/xca/"
  31. - cmake -DCMAKE_BUILD_TYPE=Release -B build
  32. - cmake --build build -t sphinx-html
  33. - doc2dash build/doc/html
  34. # Build icons
  35. # old style
  36. - convert -resize 16x16 img/xca-icons.iconset/icon_16x16.png xca.docset/icon.png
  37. - convert -resize 32x32 img/xca-icons.iconset/icon_32x32.png xca.docset/icon@2x.png
  38. # new style
  39. # - magick img/xca-icons.iconset/icon_16x16.png -resize 16x16 xca.docset/icon.png
  40. # - magick img/xca-icons.iconset/icon_32x32.png -resize 32x32 xca.docset/icon@2x.png
  41. # Build tgz
  42. - tar czf "$BASE_DIRECTORY/xca.docset.tgz" xca.docset
  43. - cd "$FEED_DIRECTORY"
  44. - . ./scripts/create_feed.sh
  45. - . ./scripts/publish.sh