feat: 重构文件列表组件并优化筛选逻辑 #32
This file contains hidden or 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: Build and Deploy to Github Pages | |
| on: | |
| push: | |
| branches: [ main ] | |
| permissions: | |
| contents: write | |
| # 执行的一项或多项任务 | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 获取源码 🛎️ | |
| uses: actions/checkout@v3 | |
| - name: Node环境版本 🗜️ | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 24 | |
| - name: 安装依赖 ⚙️ | |
| run: | | |
| npm i pnpm -g | |
| pnpm i | |
| - name: 打包 🏗️ | |
| run: | | |
| pnpm run build | |
| touch dist/.nojekyll | |
| - name: 部署 🚀 | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| branch: dist | |
| folder: dist | |
| clean: true |