forked from GDGToulouse/site-devfest-2020
-
Notifications
You must be signed in to change notification settings - Fork 17
52 lines (39 loc) · 1.23 KB
/
build.yml
File metadata and controls
52 lines (39 loc) · 1.23 KB
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
name: build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 0.65.3
- name: Checkout
uses: actions/checkout@v2
- name: Checkout submodules
shell: bash
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
# BUILD
- name: Install dependencies
run: npm ci
- name: Generate Compressed images
run: npm run build:images
- name: Generate SVG icons
run: npm run build:icons
- name: Generate pages CSS
run: npm run build:styles
- name: Build Site
run: hugo --baseURL https://devfest2021.gdgnantes.com/
env:
HUGO_ENV: production
- name: Generate PWA service worker
run: npm run build:service-worker
- name: Optimize HTML / JS / CSS
run: npm run build:minify