Skip to content

Commit

Permalink
chore(ci): add test build for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
KrzysztofMoch committed Mar 8, 2024
1 parent 0f31271 commit ad195c5
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test-build-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@

name: test build docs
on:
workflow_dispatch:
pull_request:
paths:
- '.github/workflows/test-build-docs.yml'
- 'docs/**'

jobs:
deploy-docs:
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

0 comments on commit ad195c5

Please sign in to comment.