完成知识库功能;上传的文件支持分词;简单的BM25算法实现; #21
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: Deploy to GitHub Pages | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: 设置 Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: 安装依赖 | |
working-directory: ./thchat-ui | |
run: npm install | |
- name: 构建项目 | |
working-directory: ./thchat-ui | |
run: npm run build:github | |
- name: 部署到 GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./thchat-ui/dist |