-
Notifications
You must be signed in to change notification settings - Fork 33
45 lines (42 loc) · 1.24 KB
/
check.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
---
name: Check
on:
pull_request:
branches: ["master"]
jobs:
spellcheck:
runs-on: ubuntu-latest
steps:
- uses: gevhaz/word-warden@19ecfa1576f02d4f73125213c4a1712f5ab47c23
with:
word_warden_ref: 19ecfa1576f02d4f73125213c4a1712f5ab47c23
preprocessing_script: .github/scripts/remove-front-matter.sed
files: "**/!(tempora-maxime|lorem|id-modi|LICENSE).md"
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.102.3
steps:
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Build with Hugo
env:
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: |
set -x
pwd
ls
hugo \
--minify \
--baseURL grotius.example.com \
--theme hugo-theme-notrack/ \
--themesDir ../../ \
--printUnusedTemplates \
working-directory: ./exampleSite