-
Notifications
You must be signed in to change notification settings - Fork 669
61 lines (50 loc) · 1.45 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
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 --environment=production --minify --templateMetrics --logLevel info
# 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