Skip to content

Commit 6cde76a

Browse files
committed
Add deploy preview workflow
Signed-off-by: Jack Baldry <[email protected]>
1 parent 884c653 commit 6cde76a

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy pr preview
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- closed
9+
paths:
10+
- "docs/sources/k6/**"
11+
12+
jobs:
13+
deploy-pr-preview:
14+
if: "!github.event.pull_request.head.repo.fork"
15+
uses: grafana/writers-toolkit/.github/workflows/deploy-preview.yml@main
16+
with:
17+
branch: ${{ github.head_ref }}
18+
event_number: ${{ github.event.number }}
19+
repo: k6-docs
20+
sha: ${{ github.event.pull_request.head.sha }}
21+
sources: |
22+
[
23+
{
24+
"relative_prefix": "/docs/grafana-cloud/k6-docs/",
25+
"repo": k6-docs,
26+
"source_directory": "docs/sources/k6",
27+
"website_directory": "content/docs/k6"
28+
}
29+
]
30+
title: ${{ github.event.pull_request.title }}

0 commit comments

Comments
 (0)