-
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 987 Bytes
/
deploy-docs.yml
File metadata and controls
36 lines (36 loc) · 987 Bytes
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: Deploy docs
on:
push:
branches:
- master
jobs:
build-and-deploy:
if: ${{ github.actor != 'dependabot[bot]' }}
name: Build and deploy docs
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16]
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- uses: pnpm/action-setup@v2.4.0
with:
version: 7
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build packages 🔧 (docs included 📄)
run: pnpm build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: packages/docs/.vuepress/dist
CLEAN: true