Skip to content

Commit

Permalink
feat: 更新GitHub自动化构建配置
Browse files Browse the repository at this point in the history
  • Loading branch information
super456 committed Apr 26, 2024
1 parent 229d060 commit 8c76ce0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/generate_readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
persist-credentials: false
fetch-depth: 0

- name: Install pnpm
- name: 安装 pnpm
uses: pnpm/[email protected]
with:
version: 6.15.1
Expand All @@ -30,9 +30,24 @@ jobs:
node-version: 16
cache: 'pnpm'

- name: Run Script
- name: 安装依赖及生成 README
run: pnpm install && pnpm greadme && pnpm prettier

- name: 打包
run: pnpm run build

- name: 构建 pagefind 索引
run: npx pagefind --source dist

- name: 部署到 Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
repository-name: super456/FE-MindMap
clean: true
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
branch: action-pages
folder: dist

- name: Push
uses: github-actions-x/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion scripts/generateReadme.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ pnpm build
- [x] [浏览器缓存 <img alt="" height="16" src="https://img.shields.io/github/size/maomao1996/FE-MindMap/xmind/%E6%B5%8F%E8%A7%88%E5%99%A8%E7%BC%93%E5%AD%98.xmind" align="center" />](https://github.com/maomao1996/FE-MindMap/blob/main/xmind/%E6%B5%8F%E8%A7%88%E5%99%A8%E7%BC%93%E5%AD%98.xmind)
1. 预览地址:
2. 预览地址:
- <https://xmind.fe-mm.com>
- <https://xmind.netlify.app>
- <https://femindmap.vercel.app>
Expand Down

0 comments on commit 8c76ce0

Please sign in to comment.