.push.yml 991 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. when:
  2. event:
  3. - push
  4. - pull_request
  5. - manual
  6. steps:
  7. pre-commit:
  8. image: python:3.12
  9. commands:
  10. - python -m pip install pre-commit
  11. - export SKIP=redocly-lint
  12. - pre-commit run -a
  13. lint-openapi:
  14. image: node:22
  15. commands:
  16. - npm i -g @redocly/cli@latest
  17. - make lint
  18. semantic-release:
  19. image: node:22
  20. secrets:
  21. - SEMANTIC_RELEASE_TOKEN
  22. commands:
  23. - |
  24. npm i -g @saithodev/semantic-release-gitea \
  25. @bjoluc/semantic-release-config-poetry \
  26. @semantic-release/git \
  27. @semantic-release/changelog \
  28. @semantic-release/exec \
  29. @google/semantic-release-replace-plugin \
  30. prettier;
  31. - export GITEA_URL=https://git.snas.black-burn.ch
  32. - export GITEA_TOKEN=$${SEMANTIC_RELEASE_TOKEN}
  33. - semantic-release
  34. when:
  35. branch:
  36. - "*.*.x"
  37. - main
  38. - master
  39. - next
  40. - next-major
  41. - beta
  42. - alpha