-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (33 loc) · 931 Bytes
/
github-pages.yaml
File metadata and controls
41 lines (33 loc) · 931 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
37
38
39
40
41
name: GitHub Pages Deploy Workflow
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js 16.x
uses: actions/setup-node@v2-beta
with:
node-version: 16.x
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- name: Use pnpm
uses: pnpm/action-setup@v2.0.1
with:
version: latest
- name: Install dependencies and build frontend
run: pnpm install && pnpm build:website
- name: Deploy to GitHub Pages 🚀
uses: JamesIves/github-pages-deploy-action@4.1.3
with:
branch: gh-pages
folder: packages/website/dist