forked from devopsdays/devopsdays-web
-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (58 loc) · 1.61 KB
/
hugo.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
name: test hugo
on: [pull_request]
env:
NODE_VERSION: 16
HUGO_VERSION: 0.126.1
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Lint Filenames
uses: julie-ng/lowercase-linter@v1
id: lint_filenames
continue-on-error: false
with:
path: "."
pr-comment: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
test-linux:
needs: lint
name: Build hugo on Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: ${{ env.HUGO_VERSION }}
extended: true
- name: Build Hugo
run: hugo -v
- uses: actions/setup-node@v3
name: Setup Node
with:
node-version: ${{ env.NODE_VERSION }}
- run: npm ci
name: Run npm ci
- name: Test through minifying
run: gulp min-html
# test-windows:
# needs: lint
# name: Build hugo on Windows
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: true # Fetch Hugo themes (true OR recursive)
# fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
# - name: Setup Hugo
# uses: peaceiris/actions-hugo@v2
# with:
# hugo-version: ${{ env.HUGO_VERSION }}
# - name: Build
# run: hugo -v