Skip to content

Deploy docs to Pages #11

Deploy docs to Pages

Deploy docs to Pages #11

Workflow file for this run

name: Deploy docs to Pages
on:
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v3
with:
package_json_file: 'docs/package.json'
version: 8
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install dependencies
run: cd docs && pnpm install
- name: Build with VitePress
run: cd docs && pnpm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/.vitepress/dist
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4