fping.yaml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. when:
  2. - event: manual
  3. branch: main
  4. - event: push
  5. branch: main
  6. path: '.woodpecker/fping.yaml'
  7. steps:
  8. - name: fping
  9. environment:
  10. PROJECT_NAME: fping
  11. PROJECT_PRETTY_NAME: fping
  12. PROJECT_VERSION: 5.2
  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. - TARBALL_URL="https://github.com/schweikert/fping/releases/download/v$PROJECT_VERSION/fping-$PROJECT_VERSION.tar.gz"
  22. - . ./scripts/environment.sh
  23. - . ./scripts/install_dashing.sh
  24. - . ./scripts/download_tarball.sh
  25. - . ./scripts/prepare_docs_directory.sh
  26. - pod2html --noindex --infile=../fping-$PROJECT_VERSION/doc/fping.pod --outfile=../docs/fping.html --title="fping man-page"
  27. - |
  28. cat << EOF > "$DOCS_DIRECTORY/dashing.json"
  29. {
  30. "name": "fping",
  31. "package": "fping",
  32. "index": "fping.html",
  33. "selectors": {
  34. "title": "Guide",
  35. "dl dt": "Option"
  36. },
  37. "allowJS": false
  38. }
  39. EOF
  40. - . ./scripts/build_dashing.sh
  41. - . ./scripts/create_docs_tarball.sh
  42. - . ./scripts/create_feed.sh
  43. - . ./scripts/publish.sh