socat.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. when:
  2. - event: manual
  3. branch: main
  4. - event: push
  5. branch: main
  6. path: '.woodpecker/socat.yaml'
  7. steps:
  8. - name: socat
  9. environment:
  10. PROJECT_NAME: socat
  11. PROJECT_PRETTY_NAME: socat
  12. PROJECT_VERSION: 1.8.0.1
  13. FEED_REVISION: 2
  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="http://www.dest-unreach.org/socat/download/socat-$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. - cp "$BASE_DIRECTORY/socat-$PROJECT_VERSION/doc/"*.html "$DOCS_DIRECTORY"
  27. - cp "$BASE_DIRECTORY/socat-$PROJECT_VERSION/doc/"*.css "$DOCS_DIRECTORY"
  28. - |
  29. cat << EOF > "$DOCS_DIRECTORY/dashing.json"
  30. {
  31. "name": "socat",
  32. "package": "socat",
  33. "index": "socat.html",
  34. "selectors": {
  35. "dl dt strong strong code": "Option",
  36. "h2": "Section",
  37. "title": "Guide"
  38. },
  39. "ignore": ["", "<strong>socat</strong>"],
  40. "allowJS": false
  41. }
  42. EOF
  43. - . ./scripts/build_dashing.sh
  44. - . ./scripts/create_docs_tarball.sh
  45. - . ./scripts/create_feed.sh
  46. - . ./scripts/publish.sh