Skip to content

Commit

Permalink
Add workflow that builds the website with both documentation sets
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Baldry <[email protected]>
  • Loading branch information
jdbaldry committed Jan 14, 2025
1 parent faae8c7 commit 5dabd3a
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build-website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: build-website

on:
push:
paths:
- "docs/sources/k6/**"
- "docs/sources/k6-studio/**"
- ".github/workflows/build-website.yml"
workflow_dispatch:

jobs:
build-website:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

- name: Build website with k6 docs
uses: grafana/writers-toolkit/build-website@4b1248585248751e3b12fd020cf7ac91540ca09c # build-website/v1.0.1
with:
source_directory: docs/sources/k6
website_directory: content/docs/k6/next

- name: Build website with k6 Studio docs
uses: grafana/writers-toolkit/build-website@4b1248585248751e3b12fd020cf7ac91540ca09c # build-website/v1.0.1
with:
source_directory: docs/sources/k6-studio
website_directory: content/docs/k6-studio

0 comments on commit 5dabd3a

Please sign in to comment.