Skip to content

Deploy Docs to Github Pages #2

Deploy Docs to Github Pages

Deploy Docs to Github Pages #2

Workflow file for this run

name: Deploy Docs to Github Pages
on:
push:
branches: ["main"]
paths:
- "apps/docs/**"
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:
jobs:
build-and-deploy:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: pnpm/action-setup@v3
with:
version: 9
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"
- name: Install dependencies
run: pnpm install --filter=./apps/docs
- name: Build
run: pnpm build --filter=./apps/docs
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.0
with:
branch: gh-pages
folder: apps/docs/out