core: 修正部分排版,允许背景传入空值以指示当前没有背景 #625
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: "构建并部署开发文档" | |
on: | |
push: | |
branches: | |
- full-refractor | |
jobs: | |
deploy-docs: | |
name: 构建并部署开发文档 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
name: 克隆仓库 | |
- 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: 安装 wasm-pack | |
uses: jetli/[email protected] | |
with: | |
version: latest | |
- name: 安装 wasm32 目标 | |
run: rustup target add wasm32-unknown-unknown | |
- name: 安装依赖并构建网站 | |
run: | | |
pnpm i | |
pnpm -F @applemusic-like-lyrics/docs build | |
env: | |
YARN_ENABLE_IMMUTABLE_INSTALLS: false | |
AMLL_GITHUB_IS_ACTION: true | |
- name: 部署到 Github Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: packages/docs/out |