-
Notifications
You must be signed in to change notification settings - Fork 34
39 lines (32 loc) · 873 Bytes
/
docs.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
37
38
39
name: Deploy
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
- name: Cache pnpm modules
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/[email protected]
with:
version: 7.1.2
- name: Install Dependencies
run: pnpm install
- name: Build
run: pnpm build:docs
- name: Generate Fallback Page
run: cp test-app/dist/index.html test-app/dist/404.html
- name: Upload to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: test-app/dist