Skip to content

Commit

Permalink
docs: add deploy preview (#15403)
Browse files Browse the repository at this point in the history
  • Loading branch information
robbymilo authored Dec 16, 2024
1 parent 3b0d815 commit 336ceb7
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/deploy-pr-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy pr preview

on:
pull_request:
types:
- opened
- synchronize
- closed
paths:
- "docs/sources/**"

jobs:
deploy-pr-preview:
if: github.repository == 'grafana/loki'
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: loki
website_directory: content/docs/loki/latest
relative_prefix: /docs/loki/latest/
index_file: true

0 comments on commit 336ceb7

Please sign in to comment.