Skip to content

Commit

Permalink
add deploy preview workflow (#10324)
Browse files Browse the repository at this point in the history
* add deploy preview workflow

* Update .github/workflows/deploy-pr-preview.yml

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

---------

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
  • Loading branch information
robbymilo and jdbaldry authored Jan 6, 2025
1 parent 72bfdcb commit cfa5108
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/deploy-pr-preview.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cfa5108

Please sign in to comment.