Skip to content

Commit

Permalink
Add docs-only workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hildjj committed Nov 20, 2024
1 parent c058d6f commit 3a632f9
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy to GitHub Pages

on:
workflow_dispatch:
inputs:
branch:
type: choice
description: Which branch to deploy?
required: true
options:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch }}
- name: Enable pnpm
run: "corepack enable"
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: pnpm
- run: pnpm install
- run: npm run build
- run: npm run docs
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs

0 comments on commit 3a632f9

Please sign in to comment.