-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
fcdefe0
commit 1fb87bc
Showing
1 changed file
with
6 additions
and
5 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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
name: Deploy to GitHub Pages | ||
|
||
permissions: | ||
contents: write | ||
on: [push] # 触发事件 | ||
|
||
jobs: | ||
|
@@ -10,12 +11,12 @@ jobs: | |
uses: actions/checkout@v3 | ||
- name: corepack enable | ||
run: corepack enable | ||
- name: Install | ||
- name: 安装依赖 | ||
run: npm install | ||
- name: Build VuePress | ||
- name: 开始构建 | ||
run: npm run docs:build | ||
- name: Deploy to GitHub Pages | ||
- name: 部署到服务器 | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages # 部署分支 | ||
folder: .vuepress/dist # 部署文件夹 | ||
folder: src/.vuepress/dist |