From 5dabd3a66488dc24d1a69b7cc12432b78e36c03b Mon Sep 17 00:00:00 2001 From: Jack Baldry Date: Tue, 14 Jan 2025 12:23:46 +0000 Subject: [PATCH] Add workflow that builds the website with both documentation sets Signed-off-by: Jack Baldry --- .github/workflows/build-website.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/build-website.yml diff --git a/.github/workflows/build-website.yml b/.github/workflows/build-website.yml new file mode 100644 index 000000000..77dc5dd7f --- /dev/null +++ b/.github/workflows/build-website.yml @@ -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