fix: 🐛 完善前端 #24
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: 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 |