-
Notifications
You must be signed in to change notification settings - Fork 34
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
8e175d1
commit ff16fa6
Showing
1 changed file
with
10 additions
and
11 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,31 +1,30 @@ | ||
name: Deploy GitHub Pages | ||
|
||
# 触发条件:在 push 到 master 分支后 | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
# 任务 | ||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 18 | ||
node-version: 16 | ||
|
||
- name: install | ||
run: yarn install | ||
- name: Install Dependencies | ||
run: yarn install | ||
|
||
- name: Build | ||
run: yarn docs:build | ||
run: yarn docs:build | ||
|
||
- name: Deploy 🚀 | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages # The branch the action should deploy to. | ||
folder: docs/.vuepress/dist # The folder the action should deploy. | ||
branch: gh-pages | ||
folder: docs/.vuepress/dist |