Skip to content

Commit 80c3686

Browse files
committed
Always build docs.
1 parent c600362 commit 80c3686

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/build-docs.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build docs
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
environment: github-pages
10+
env:
11+
META_LOGO_URL: ${{vars.META_LOGO_URL}}
12+
ALGOLIA_APP_ID: ${{vars.ALGOLIA_APP_ID}}
13+
ALGOLIA_API_KEY: ${{vars.ALGOLIA_API_KEY}}
14+
ALGOLIA_INDEX_NAME: ${{vars.ALGOLIA_INDEX_NAME}}
15+
GH_URL: ${{vars.GH_URL}}
16+
GH_ORG: ${{vars.GH_ORG}}
17+
GH_PROJECT_NAME: ${{vars.GH_PROJECT_NAME}}
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
- name: Setup NodeJS
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version-file: '.nvmrc'
25+
- uses: pnpm/action-setup@v2
26+
name: Install pnpm
27+
with:
28+
version: 9
29+
run_install: false
30+
- name: Get pnpm store directory
31+
shell: bash
32+
run: |
33+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
34+
- uses: actions/cache@v3
35+
name: Setup pnpm cache
36+
with:
37+
path: ${{ env.STORE_PATH }}
38+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
39+
restore-keys: |
40+
${{ runner.os }}-pnpm-store-
41+
- name: Install dependencies
42+
run: pnpm install
43+
- name: Build Packages
44+
run: pnpm build:packages
45+
- name: Build Docs
46+
run: pnpm docs:build

0 commit comments

Comments
 (0)