-
Notifications
You must be signed in to change notification settings - Fork 19
44 lines (44 loc) · 1.18 KB
/
docs-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Build
on:
workflow_call:
push:
branches-ignore:
- main
jobs:
generate-docs:
name: Build docs
runs-on: ubuntu-latest
strategy:
matrix:
go_version: ['1.22']
node_version: ["lts/*"]
steps:
- uses: actions/checkout@v4
- name: Use golang ${{ matrix.go_version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go_version }}
- name: Go version
run: go version
- name: generate api reference
run: ./scripts/api-reference/reference-docs-gen-config.sh
- name: Use node ${{ matrix.node_version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
cache: npm
- name: install dependencies
run: npm ci
- name: lint
run: npm run lint
- name: check spell
run: npm run spellcheck
- name: create adopters
run: node ./scripts/adopters/adopters-to-table.js
- name: Build website
run: npm run build
- name: Cache build
uses: actions/cache@v4
with:
path: build
key: build-website-${{ github.sha }}-${{ github.run_id }}