Skip to content

Commit 026cc8e

Browse files
committed
工具: add ci
1 parent 12efcc2 commit 026cc8e

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
name: GitHub Actions Build and Deploy pages
2-
on:
3-
push:
4-
branches:
5-
- master
1+
name: Build and Deploy
2+
on: [push]
63
jobs:
74
build-and-deploy:
85
runs-on: ubuntu-latest
96
steps:
10-
- name: Checkout
11-
uses: actions/checkout@master
7+
- name: Checkout 🛎️
8+
uses: actions/checkout@v2.3.1
129

13-
- name: Build doc and Deploy
14-
uses: JamesIves/github-pages-deploy-action@master
15-
env:
16-
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
17-
BRANCH: gh-pages
18-
FOLDER: .vitepress/dist
19-
BUILD_SCRIPT: yarn install && yarn run docs:build
10+
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
11+
run: |
12+
node --version
13+
yarn install
14+
yarn run docs:build
15+
16+
- name: Deploy 🚀
17+
uses: JamesIves/[email protected]
18+
with:
19+
branch: gh-pages # The branch the action should deploy to.
20+
folder: .vitepress/dist # The folder the action should deploy.

0 commit comments

Comments
 (0)