Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hoochanlon authored Aug 11, 2023
1 parent 8e175d1 commit ff16fa6
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/ci.yml
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

0 comments on commit ff16fa6

Please sign in to comment.