stunnel.yaml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. when:
  2. - event: manual
  3. branch: main
  4. - event: push
  5. branch: main
  6. path: '.woodpecker/stunnel.yaml'
  7. steps:
  8. - name: stunnel
  9. environment:
  10. PROJECT_NAME: stunnel
  11. PROJECT_PRETTY_NAME: stunnel
  12. PROJECT_VERSION: 5.74
  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://www.stunnel.org/downloads/stunnel-$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. - cd "$BASE_DIRECTORY/stunnel-$PROJECT_VERSION"
  27. - ./configure
  28. - cd doc
  29. - make
  30. - cp "stunnel.html" "$BASE_DIRECTORY/docs/"
  31. - cp "stunnel.pl.html" "$BASE_DIRECTORY/docs/"
  32. - |
  33. cat <<EOF > "$DOCS_DIRECTORY/dashing.json"
  34. {
  35. "name": "stunnel",
  36. "package": "stunnel",
  37. "index": "stunnel.html",
  38. "selectors": {
  39. "title": "Package",
  40. "dl dt b": "Option"
  41. },
  42. "allowJS": false
  43. }
  44. EOF
  45. - cd "$FEED_DIRECTORY"
  46. - . ./scripts/build_dashing.sh
  47. - . ./scripts/create_docs_tarball.sh
  48. - . ./scripts/create_feed.sh
  49. - . ./scripts/publish.sh