diff --git a/.github/workflows/deploy-pr-preview.yml b/.github/workflows/deploy-pr-preview.yml new file mode 100644 index 00000000000..92eda749b74 --- /dev/null +++ b/.github/workflows/deploy-pr-preview.yml @@ -0,0 +1,25 @@ +name: Deploy pr preview + +on: + pull_request: + types: + - opened + - synchronize + - closed + paths: + - "docs/sources/**" + +jobs: + deploy-pr-preview: + if: github.repository == 'grafana/mimir' + uses: grafana/writers-toolkit/.github/workflows/deploy-preview.yml@main + with: + sha: ${{ github.event.pull_request.head.sha }} + branch: ${{ github.head_ref }} + event_number: ${{ github.event.number }} + title: ${{ github.event.pull_request.title }} + repo: mimir + source_directory: docs/sources/mimir + website_directory: content/docs/mimir/latest + relative_prefix: /docs/mimir/latest/ + index_file: true diff --git a/CODEOWNERS b/CODEOWNERS index 70e1265d926..00d7e79be62 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -2,6 +2,7 @@ * @grafana/mimir-maintainers # Documentation. +/.github/workflows/deploy-pr-preview.yml @grafana/docs-tooling @grafana/mimir-maintainers /.github/workflows/publish-technical-documentation-next.yml @grafana/docs-tooling @grafana/mimir-maintainers /.github/workflows/publish-technical-documentation-release-helm-charts.yml @grafana/docs-tooling @grafana/mimir-maintainers /.github/workflows/publish-technical-documentation-release-mimir.yml @grafana/docs-tooling @grafana/mimir-maintainers