docs_build.yaml 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. name: Build documentation
  2. on:
  3. pull_request:
  4. paths:
  5. - 'ydb/docs/**'
  6. jobs:
  7. build-docs:
  8. concurrency:
  9. group: docs-build-${{ github.ref }}
  10. cancel-in-progress: true
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: Update integrated status
  14. shell: bash
  15. run: |
  16. curl -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{github.token}}" -H "X-GitHub-Api-Version: 2022-11-28" \
  17. https://api.github.com/repos/${{github.repository}}/statuses/${{github.event.pull_request.head.sha}} \
  18. -d '{"state":"pending","description":"Waiting for relevant checks to complete","context":"checks_integrated"}'
  19. - name: Checkout
  20. uses: actions/checkout@v3
  21. - name: Build
  22. uses: diplodoc-platform/docs-build-action@v3
  23. with:
  24. revision: "pr-${{ github.event.pull_request.number }}-${{ github.event.pull_request.head.sha }}"
  25. src-root: "./ydb/docs"
  26. - name: Update integrated status
  27. shell: bash
  28. run: |
  29. curl -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{github.token}}" -H "X-GitHub-Api-Version: 2022-11-28" \
  30. https://api.github.com/repos/${{github.repository}}/statuses/${{github.event.pull_request.head.sha}} \
  31. -d '{"state":"success","description":"All checks completed","context":"checks_integrated"}'