-
Notifications
You must be signed in to change notification settings - Fork 31
36 lines (32 loc) · 827 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: build
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: '6.26.1'
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '16.13.2'
- name: Install dependencies
run: pnpm install
- name: build
run: pnpm build
- name: Build docs
run: pnpm docs:build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs/.vitepress/dist
GIT_CONFIG_NAME: vue-components-lib-seed
COMMIT_MESSAGE: website deploy