-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (40 loc) · 1.03 KB
/
deploy.yaml
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
46
47
name: Build and Deploy
on: [push]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
- name: Setup node.js 🏡
uses: actions/setup-node@v1
with:
node-version: '14.15.0'
- name: Cache 📁
uses: actions/cache@v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-locks.lock') }}
- name: Install 🔧
run: |
npm install
npm run bootstrap
- name: Test 🧪
run: |
npm test
- name: Build 🏗️
run: |
npm run build
- name: Generate docs 📃
run: |
npm run docgen
- name: Deploy 🚀
if: github.ref == 'refs/heads/main'
uses: helaili/[email protected]
env:
JEKYLL_PAT: ${{ github.actor }}:${{ github.token }}
with:
jekyll_src: site
target_branch: gh-pages