Merge pull request #68 from alibaba/releases/1223 #151
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 构建和发布官网 | |
name: Build and Deploy Docs Website | |
on: | |
push: | |
branches: | |
- main | |
- 'releases/**' | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Source | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18' | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: '9' | |
- name: Install Dependencies | |
run: pnpm install | |
- name: Build Docs | |
run: pnpm docs:build | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: docs-dist |