Skip to content

Merge pull request #47 from MelodyLLL/feature/interceptors_update #91

Merge pull request #47 from MelodyLLL/feature/interceptors_update

Merge pull request #47 from MelodyLLL/feature/interceptors_update #91

Workflow file for this run

name: deploy
on:
push:
branches: [main] # master 分支有 push 时触发
paths-ignore: # 下列文件的变更不触发部署,可以自行添加
- README.md
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: 检出代码
uses: actions/checkout@v4
- name: 安装pnpm
uses: pnpm/action-setup@v4
with:
version: 8
- name: Node环境
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: 安装构建
run: |
pnpm install
pnpm build:h5
# 部署到 GitHub pages
- name: 部署
uses: peaceiris/actions-gh-pages@v4 # 使用部署到 GitHub pages 的 action
with:
github_token: ${{ secrets.GITHUB_TOKEN }} # secret 名
commit_message: 自动部署 # 部署时的 git 提交信息,自由填写
publish_dir: ./dist/build/h5 # 部署打包后的 dist 目录