-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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: | ||
|
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