docs-antora.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. name: Antora docs
  2. on:
  3. push:
  4. paths:
  5. - 'docs/**'
  6. - 'local-antora-playbook.yml'
  7. - 'local-antora-playbook-ci.yml'
  8. - '.github/workflows/docs-antora.yml'
  9. pull_request:
  10. paths:
  11. - 'docs/**'
  12. - 'local-antora-playbook.yml'
  13. - 'local-antora-playbook-ci.yml'
  14. - '.github/workflows/docs-antora.yml'
  15. jobs:
  16. antora:
  17. runs-on: ubuntu-latest
  18. steps:
  19. - name: Checkout repository
  20. uses: actions/checkout@v4
  21. with:
  22. fetch-depth: 0
  23. - name: Install Node.js
  24. uses: actions/setup-node@v4
  25. with:
  26. node-version: '22'
  27. - name: Install Antora toolchain
  28. run: npm i antora@3.1.14 asciidoctor-kroki@0.18.1 @asciidoctor/tabs@1.0.0-beta.6
  29. - name: Check docs config key casing
  30. run: python3 docs/modules/ROOT/check_config_keys.py
  31. - name: Check docs chevron links
  32. run: python3 docs/modules/ROOT/check_chevron_links.py
  33. - name: Generate docs site (smoke)
  34. run: npx antora local-antora-playbook-ci.yml --log-level info
  35. trigger-docs-publish:
  36. needs: antora
  37. if: github.event_name == 'push' && github.ref == 'refs/heads/next'
  38. runs-on: ubuntu-latest
  39. steps:
  40. - name: Trigger docs.olivetin.app publish
  41. env:
  42. GH_TOKEN: ${{ secrets.CONTAINER_TOKEN }}
  43. run: gh workflow run asciidoc.yml --repo OliveTin/docs.olivetin.app --ref main