Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 32 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ jobs:
- name: Build docs
run: mkdocs build

deploy:
deploy-github-pages:
name: Deploy GitHub Pages
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
permissions:
Expand All @@ -73,3 +74,33 @@ jobs:

- name: Build and deploy
run: mkdocs gh-deploy --force

deploy-vercel:
name: Deploy Vercel Docs
if: >-
github.event_name != 'pull_request'
&& github.ref == 'refs/heads/main'
&& github.repository_owner == 'headroomlabs-ai'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6

- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
cache: npm
cache-dependency-path: docs/package-lock.json

- name: Install dependencies
run: npm ci
working-directory: docs

- name: Deploy to Vercel
run: npx vercel deploy --prod --token=${{ secrets.VERCEL_TOKEN }}
working-directory: docs
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
6 changes: 6 additions & 0 deletions docs/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"framework": "nextjs",
"buildCommand": "next build",
"outputDirectory": ".next",
"installCommand": "npm install"
}
Loading