gpui-component/.github/workflows/release-docs.yml
2025-10-21 15:22:17 +08:00

37 lines
852 B
YAML

name: Release Docs
on:
push:
paths:
- "docs/**"
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install
working-directory: docs
run: bun install
- name: Build
working-directory: docs
run: |
bun run build
cp .vitepress/dist/index.html .vitepress/dist/404.html
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "docs/.vitepress/dist"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4