socat.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. image: codeberg.org/mark22k/ci:latest
  15. pull: true
  16. commands:
  17. - TARBALL_URL="http://www.dest-unreach.org/socat/download/socat-$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. - cp "$BASE_DIRECTORY/socat-$PROJECT_VERSION/doc/"*.html "$DOCS_DIRECTORY"
  23. - cp "$BASE_DIRECTORY/socat-$PROJECT_VERSION/doc/"*.css "$DOCS_DIRECTORY"
  24. - |
  25. cat << EOF > "$DOCS_DIRECTORY/dashing.json"
  26. {
  27. "name": "socat",
  28. "package": "socat",
  29. "index": "socat.html",
  30. "selectors": {
  31. "dl dt strong strong code": "Option",
  32. "h2": "Section",
  33. "title": "Guide"
  34. },
  35. "ignore": ["", "<strong>socat</strong>"],
  36. "allowJS": false
  37. }
  38. EOF
  39. - . ./scripts/build_dashing.sh
  40. - . ./scripts/create_docs_tarball.sh
  41. - . ./scripts/create_feed.sh
  42. - . ./scripts/publish.sh
  43. secrets:
  44. - codeberg_git_username
  45. - codeberg_git_password