-
-
Notifications
You must be signed in to change notification settings - Fork 625
45 lines (37 loc) · 1.01 KB
/
gh-pages.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
40
41
42
43
44
45
name: 'GitHub Pages'
on:
push:
branches:
- master
paths:
- 'website/**'
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Actions - Checkout
uses: actions/checkout@v4
- name: Actions - Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: Cache Dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-website-${{ hashFiles('website/package-lock.json') }}
restore-keys: npm-website-
- name: Installing Dependencies
run: cd website && npm ci
- name: Checking Types
run: cd website && npm run typecheck
- name: Run Unit Tests
run: cd website && npm run test:unit
- name: Building Site
run: cd website && npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./website/build