增加自定义 dpaste 端点设置 #114
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 | |
fetch-depth: 0 | |
- name: 安装 PNPM | |
uses: pnpm/[email protected] | |
with: | |
version: latest | |
- name: 安装 Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: lts/* | |
cache: pnpm | |
- 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 }} |