From 5d5c055d8ce32e7159653bbfa27954fcda93d307 Mon Sep 17 00:00:00 2001 From: Robby Milo Date: Fri, 13 Dec 2024 14:42:40 +0100 Subject: [PATCH] add docs deploy preview (#2268) * add docs deploy preview * revert codeowners change --- .github/workflows/deploy-pr-preview.yml | 23 +++++++++++++++++++++++ CODEOWNERS | 1 + 2 files changed, 24 insertions(+) create mode 100644 .github/workflows/deploy-pr-preview.yml diff --git a/.github/workflows/deploy-pr-preview.yml b/.github/workflows/deploy-pr-preview.yml new file mode 100644 index 0000000000..fadcde280c --- /dev/null +++ b/.github/workflows/deploy-pr-preview.yml @@ -0,0 +1,23 @@ +name: Deploy pr preview + +on: + pull_request: + types: + - opened + - synchronize + - closed + paths: + - "docs/sources/**" + +jobs: + deploy-pr-preview: + 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: alloy + website_directory: content/docs/alloy/latest + relative_prefix: /docs/alloy/latest/ + index_file: true diff --git a/CODEOWNERS b/CODEOWNERS index 750a939cd5..3d3b770f0c 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -9,6 +9,7 @@ * @grafana/grafana-alloy-maintainers #`make docs` procedure and related workflows are owned by @jdbaldry. +/.github/workflows/deploy-pr-preview.yml @jdbaldry /.github/workflows/publish-technical-documentation-next.yml @jdbaldry /.github/workflows/publish-technical-documentation-release.yml @jdbaldry /.github/workflows/update-make-docs.yml @jdbaldry