2024-03-08 11:22:14 -07:00
|
|
|
|
2024-03-13 01:23:11 -06:00
|
|
|
name: Test Docs build
|
2024-03-08 11:22:14 -07:00
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- '.github/workflows/test-build-docs.yml'
|
|
|
|
- 'docs/**'
|
|
|
|
|
|
|
|
jobs:
|
2024-03-13 01:23:11 -06:00
|
|
|
build-docs:
|
2024-03-08 11:22:14 -07:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Setup
|
|
|
|
uses: ./.github/actions/setup-bun
|
|
|
|
with:
|
|
|
|
working-directory: ./docs
|
|
|
|
|
|
|
|
- name: Cache build
|
|
|
|
uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
docs/.next/cache
|
|
|
|
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/bun.lockb') }}-${{ hashFiles('**/package.json') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-nextjs-${{ hashFiles('**/bun.lockb') }}
|
|
|
|
${{ runner.os }}-nextjs-
|
|
|
|
|
|
|
|
- name: Build docs
|
|
|
|
run: |
|
|
|
|
bun --cwd docs build
|
|
|
|
touch docs/out/.nojekyll
|