From ff2f1f81ff31e2ac686f50b883d90f75051e25df Mon Sep 17 00:00:00 2001 From: Jack Baldry Date: Tue, 7 Feb 2023 10:45:30 +0000 Subject: [PATCH] Ensure technical documentation builds on PRs and before publishing to the website (#2046) Signed-off-by: Jack Baldry --- .github/workflows/ci.yml | 9 +++++++++ .github/workflows/website-next.yml | 17 ++++++++--------- .github/workflows/website-versioned.yml | 8 ++++++++ 3 files changed, 25 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dfefe1ac6cd..5d3c5bea6ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -182,3 +182,12 @@ jobs: - name: Check tempo-mixin run: make tempo-mixin-check + + build-technical-documentation: + name: Build technical documentation + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v3 + - name: Build Website + run: docker run -v ${PWD}/docs/sources:/hugo/content/docs/tempo/latest --rm grafana/docs-base:latest make prod diff --git a/.github/workflows/website-next.yml b/.github/workflows/website-next.yml index 519091229bf..7c091571825 100644 --- a/.github/workflows/website-next.yml +++ b/.github/workflows/website-next.yml @@ -8,17 +8,16 @@ on: - 'docs/sources/**' jobs: - # test: - # runs-on: ubuntu-latest - # steps: - # - name: Check out code - # uses: actions/checkout@v3 - # - name: Build Website - # run: | - # docker run -v ${PWD}/docs/sources:/hugo/content/docs/tempo/latest --rm grafana/docs-base:latest /bin/bash -c 'mkdir -p content/docs/grafana/latest/ && touch content/docs/grafana/latest/menu.yaml && make prod' + test: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v3 + - name: Build Website + run: docker run -v ${PWD}/docs/sources:/hugo/content/docs/tempo/latest --rm grafana/docs-base:latest make prod sync: runs-on: ubuntu-latest - # needs: test + needs: test steps: - uses: actions/checkout@v3 - name: "Clone website-sync Action" diff --git a/.github/workflows/website-versioned.yml b/.github/workflows/website-versioned.yml index 52bcd583d8e..7789a443510 100644 --- a/.github/workflows/website-versioned.yml +++ b/.github/workflows/website-versioned.yml @@ -11,8 +11,16 @@ on: - 'docs/sources/**' jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v3 + - name: Build Website + run: docker run -v ${PWD}/docs/sources:/hugo/content/docs/tempo/latest --rm grafana/docs-base:latest make prod sync: runs-on: ubuntu-latest + needs: test steps: - name: Checkout this repo uses: actions/checkout@v3