fping.yaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. image: codeberg.org/mark22k/ci:latest
  15. pull: true
  16. commands:
  17. - TARBALL_URL="https://github.com/schweikert/fping/releases/download/v$PROJECT_VERSION/fping-$PROJECT_VERSION.tar.gz"
  18. - . ./scripts/environment.sh
  19. - . ./scripts/install_dashing.sh
  20. - . ./scripts/download_tarball.sh
  21. - . ./scripts/prepare_docs_directory.sh
  22. - pod2html --noindex --infile=../fping-$PROJECT_VERSION/doc/fping.pod --outfile=../docs/fping.html --title="fping man-page"
  23. - |
  24. cat << EOF > "$DOCS_DIRECTORY/dashing.json"
  25. {
  26. "name": "fping",
  27. "package": "fping",
  28. "index": "fping.html",
  29. "selectors": {
  30. "title": "Guide",
  31. "dl dt": "Option"
  32. },
  33. "allowJS": false
  34. }
  35. EOF
  36. - . ./scripts/build_dashing.sh
  37. - . ./scripts/create_docs_tarball.sh
  38. - . ./scripts/create_feed.sh
  39. - . ./scripts/publish.sh
  40. secrets:
  41. - codeberg_git_username
  42. - codeberg_git_password