openvpn.yaml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. when:
  2. - event: manual
  3. branch: main
  4. - event: push
  5. branch: main
  6. path: '.woodpecker/openvpn.yaml'
  7. steps:
  8. - name: openvpn
  9. environment:
  10. PROJECT_NAME: openvpn
  11. PROJECT_PRETTY_NAME: OpenVPN
  12. PROJECT_VERSION: 2.6.12
  13. FEED_REVISION: 3
  14. image: codeberg.org/mark22k/ci:latest
  15. pull: true
  16. commands:
  17. - TARBALL_URL="https://github.com/OpenVPN/openvpn/releases/download/v$PROJECT_VERSION/openvpn-$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/openvpn-$PROJECT_VERSION/doc/openvpn.8.html" ../docs
  23. - cp "$BASE_DIRECTORY/openvpn-$PROJECT_VERSION/doc/openvpn-examples.5.html" ../docs
  24. - |
  25. cat << EOF > "$DOCS_DIRECTORY/dashing.json"
  26. {
  27. "name": "OpenVPN",
  28. "package": "OpenVPN",
  29. "index": "openvpn.8.html",
  30. "selectors": {
  31. "title": "Package",
  32. "kbd span.option": "Option"
  33. },
  34. "allowJS": false
  35. }
  36. EOF
  37. - . ./scripts/build_dashing.sh
  38. - . ./scripts/create_docs_tarball.sh
  39. - . ./scripts/create_feed.sh
  40. - . ./scripts/publish.sh
  41. secrets:
  42. - codeberg_git_username
  43. - codeberg_git_password