Skip to content

Merge pull request #653 from GraphScope/fix-0102 #88

Merge pull request #653 from GraphScope/fix-0102

Merge pull request #653 from GraphScope/fix-0102 #88

name: Build and Deploy Portal Docs Website
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
run_install: false
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false
- name: Cache pnpm modules
uses: actions/cache@v3
with:
path: |
.pnpm-store
node_modules
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Install dependencies
run: pnpm install
- name: Build assets
run: pnpm run build:docs:portal
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist # 替换为你的构建输出目录