-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (66 loc) · 1.96 KB
/
main.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Deploy application
on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- _data/**
- bin/**
workflow_run:
workflows: ['Create database']
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 📂 Checkout project
uses: actions/checkout@v2
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: 14
- name: 🔨 Download Node dependencies
run: |
npm install
- name: 🧹 Run static code analysis
run: |
npm run lint
- name: 🔨 Build Svelte project
run: |
npm run build
- name: Get database
uses: actions/checkout@v2
with:
ref: data-branch
path: data
- name: Download extra runtime dependencies
run: |
curl -s --location --output build/sql-wasm.js https://unpkg.com/sql.js@latest/dist/sql-wasm.js
curl -s --location --output build/sql-wasm.wasm https://unpkg.com/sql.js@latest/dist/sql-wasm.wasm
curl -s --location --output build/tabulator.min.css.map https://unpkg.com/tabulator-tables@latest/dist/css/tabulator.min.css.map
- name: 💎 Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: 🔨 Build Jekyll site for Lighthouse run
uses: limjh16/jekyll-action-ts@v2
with:
enable_cache: true
format_output: true
- name: Run Lighthouse CI
run: |
npm install -g @lhci/cli@0.8.x
lhci autorun
- name: 🔨 Build Jekyll site for deployment
uses: limjh16/jekyll-action-ts@v2
with:
enable_cache: true
format_output: true
custom_opts: --baseurl /exhibitionDB
- name: 🚀 Deploy to production
uses: JamesIves/github-pages-deploy-action@v4.2.5
with:
branch: gh-pages
folder: _site