fastd.yaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. when:
  2. - event: manual
  3. branch: main
  4. - event: push
  5. branch: main
  6. path: '.woodpecker/fastd.yaml'
  7. steps:
  8. - name: fastd
  9. environment:
  10. PROJECT_NAME: fastd
  11. PROJECT_PRETTY_NAME: fastd
  12. PROJECT_VERSION: 22
  13. FEED_REVISION: 3
  14. image: codeberg.org/mark22k/ci:latest
  15. pull: true
  16. commands:
  17. - GIT_BRANCH="v$PROJECT_VERSION"
  18. - GIT_URL="https://github.com/neocturne/fastd.git"
  19. - . ./scripts/environment.sh
  20. - . ./scripts/install_sphinx.sh
  21. - . ./scripts/install_doc2dash.sh
  22. - pipx inject sphinx sphinx-rtd-theme
  23. # Build fastd docs
  24. - . ./scripts/download_from_git.sh
  25. - cd "$BASE_DIRECTORY/fastd/doc/"
  26. - make html
  27. - doc2dash build/html
  28. - tar czf "$BASE_DIRECTORY/fastd.docset.tgz" fastd.docset
  29. - |
  30. cat <<EOF > "$BASE_DIRECTORY/fastd.xml"
  31. <entry>
  32. <name>fastd</name>
  33. <version>v$PROJECT_VERSION</version>
  34. <url>https://mark22k.codeberg.page/zeal-docs/@fastd/fastd.docset.tgz</url>
  35. </entry>
  36. EOF
  37. - cd "$FEED_DIRECTORY"
  38. - . ./scripts/create_feed.sh
  39. - . ./scripts/publish.sh
  40. secrets:
  41. - codeberg_git_username
  42. - codeberg_git_password