xca.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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.7.0
  13. FEED_REVISION: 1
  14. image: codeberg.org/mark22k/ci:latest
  15. pull: true
  16. commands:
  17. - GIT_BRANCH="RELEASE.$PROJECT_VERSION"
  18. - GIT_URL="https://github.com/chris2511/xca.git"
  19. - . ./scripts/environment.sh
  20. # Install python tools
  21. - . ./scripts/install_doc2dash.sh
  22. - . ./scripts/install_sphinx.sh
  23. - pipx inject sphinx sphinxcontrib-qthelp
  24. # Build xca docs
  25. - . ./scripts/download_from_git.sh
  26. - cd "$BASE_DIRECTORY/xca/"
  27. - cmake -DCMAKE_BUILD_TYPE=Release -B build
  28. - cmake --build build -t sphinx-html
  29. - doc2dash build/doc/html
  30. # Build icons
  31. # old style
  32. - convert -resize 16x16 img/xca-icons.iconset/icon_16x16.png xca.docset/icon.png
  33. - convert -resize 32x32 img/xca-icons.iconset/icon_32x32.png xca.docset/icon@2x.png
  34. # new style
  35. # - magick img/xca-icons.iconset/icon_16x16.png -resize 16x16 xca.docset/icon.png
  36. # - magick img/xca-icons.iconset/icon_32x32.png -resize 32x32 xca.docset/icon@2x.png
  37. # Build tgz
  38. - tar czf "$BASE_DIRECTORY/xca.docset.tgz" xca.docset
  39. - cd "$FEED_DIRECTORY"
  40. - . ./scripts/create_feed.sh
  41. - . ./scripts/publish.sh
  42. secrets:
  43. - codeberg_git_username
  44. - codeberg_git_password