Skip to content

Commit

Permalink
Add GitHub action to deploy to gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
bbecquet committed Feb 14, 2025
1 parent 6cee6d9 commit d2c3742
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy to gh-pages

on:
push:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Build doc+demo site
run: pnpm --filter starlight-client-mermaid-docs build

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: docs/dist # only deploy the b

0 comments on commit d2c3742

Please sign in to comment.