-
-
Notifications
You must be signed in to change notification settings - Fork 45
43 lines (41 loc) · 1007 Bytes
/
website.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
name: Build website
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
node: [ latest ]
defaults:
run:
working-directory: ./docs
steps:
- name: Checkout 🛎
uses: actions/checkout@v3
- name: Setup Node.js ${{ matrix.node }} 🏗
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'npm'
cache-dependency-path: ./docs/package-lock.json
- name: Install dependencies 👨🏻💻
run: npm ci
- name: Generate ⚙️
run: npm run generate
- name: Create .nojekyll file 🧪
run: touch ./dist/.nojekyll
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs/dist
branch: gh-pages
single-commit: true