Skip to content

feat: ✨ 完善前端 #19

feat: ✨ 完善前端

feat: ✨ 完善前端 #19

Workflow file for this run

name: REACT_AMIS_ADMIN
on:
push:
branches: [master]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js v18
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: pnpm
run: npm install pnpm -g
- name: Install
run: pnpm install # 安装依赖
- name: Build
run: npm run build # 打包
- name: Copy
run: |
cp README.md dist
cp .gitignore dist
cp -r public/app/form/static dist/static
- name: Ls
run: ls
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3 # 使用部署到 GitHub pages 的 action
with:
# 发布到指定分支
BRANCH: gh-pages
# 构建成果所在目录,默认位置都是在根目录
FOLDER: ./dist