Skip to content

Commit

Permalink
Ensure technical documentation builds on PRs and before publishing to…
Browse files Browse the repository at this point in the history
… the website (#2046)

Signed-off-by: Jack Baldry <[email protected]>
  • Loading branch information
jdbaldry authored Feb 7, 2023
1 parent 5ecd7d2 commit ff2f1f8
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 9 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
17 changes: 8 additions & 9 deletions .github/workflows/website-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/website-versioned.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff2f1f8

Please sign in to comment.