更新 AMLL 组件库到 0.2.0-alpha.2 #109
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: 构建网页版本并部署到 Github Pages | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
build-web: | |
name: 构建网页版本并部署到 Github Pages | |
runs-on: ubuntu-latest | |
steps: | |
- name: 克隆仓库源代码 | |
uses: actions/[email protected] | |
with: | |
submodules: recursive | |
- name: 安装 PNPM | |
uses: pnpm/action-setup@v4 | |
with: | |
version: latest | |
- name: 安装 Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
cache: pnpm | |
- name: 配置 NodeJS | |
uses: actions/[email protected] | |
- name: 安装前端依赖 | |
run: pnpm i | |
- name: 构建网页版本 | |
run: pnpm build | |
- name: 部署到 Github Pages | |
uses: crazy-max/[email protected] | |
with: | |
target_branch: gh-pages | |
build_dir: dist | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |