-
Notifications
You must be signed in to change notification settings - Fork 9
35 lines (34 loc) · 816 Bytes
/
Copy pathci.yml
File metadata and controls
35 lines (34 loc) · 816 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
name: Github Action Deploy docs
on:
push:
branches:
- master
env:
CI: true
PNPM_CACHE_FOLDER: .pnpm-store
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: checkout code repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: setup node.js
uses: actions/setup-node@v2
with:
node-version: 14
- name: install pnpm
run: npm i pnpm@latest -g
- name: install dependencies
run: |
pnpm install
pnpm run build
- name: Build and Deploy
uses: JamesIves/github-pages-deploy-action@v4.3.3
with:
token: ${{ secrets.ACCESS_TOKEN }}
branch: gh-pages-deploy
folder: packages/javascript-mental-modules-doc/docs/.vitepress/dist