Skip to content

Commit

Permalink
Build both Mimir docs sources in deploy preview
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Baldry <[email protected]>
  • Loading branch information
jdbaldry committed Feb 25, 2025
1 parent d913a9b commit abc7121
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions .github/workflows/deploy-pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,28 @@ on:

jobs:
deploy-pr-preview:
if: ${{ ! github.event.pull_request.head.repo.fork }}
if: "!github.event.pull_request.head.repo.fork"
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
sha: ${{ github.event.pull_request.head.sha }}
sources: |
[
{
"index_file": "content/docs/mimir/_index.md",
"relative_prefix": "/docs/mimir/latest/",
"repo": "mimir",
"source_directory": "docs/sources/mimir",
"website_directory": "content/docs/mimir/latest"
},
{
"index_file": "content/docs/helm-charts/mimir-distributed/_index.md",
"relative_prefix": "/docs/helm-charts/mimir-distributed/latest/",
"repo": "mimir",
"source_directory": "docs/sources/helm-charts/mimir-distributed",
"website_directory": "content/docs/helm-charts/mimir-distributed/latest"
}
]
title: ${{ github.event.pull_request.title }}

0 comments on commit abc7121

Please sign in to comment.