spotbugs.yaml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. when:
  2. - event: manual
  3. branch: main
  4. - event: push
  5. branch: main
  6. path: '.woodpecker/spotbugs.yaml'
  7. steps:
  8. - name: spotbugs
  9. environment:
  10. PROJECT_NAME: spotbugs
  11. PROJECT_PRETTY_NAME: spotbugs
  12. PROJECT_VERSION: 4.8.6
  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="$PROJECT_VERSION"
  22. - GIT_URL="https://github.com/spotbugs/spotbugs.git"
  23. - . ./scripts/environment.sh
  24. - . ./scripts/install_sphinx.sh
  25. - . ./scripts/install_doc2dash.sh
  26. - pipx inject sphinx sphinx-rtd-theme
  27. # Build spotbugs docs
  28. - . ./scripts/download_from_git.sh
  29. - cd "$BASE_DIRECTORY/spotbugs/docs"
  30. - make html
  31. - doc2dash .build/html
  32. - tar czf "$BASE_DIRECTORY/spotbugs.docset.tgz" spotbugs.docset
  33. - cd "$FEED_DIRECTORY"
  34. - . ./scripts/create_feed.sh
  35. - . ./scripts/publish.sh