-
Notifications
You must be signed in to change notification settings - Fork 53
48 lines (40 loc) · 1004 Bytes
/
test.yml
File metadata and controls
48 lines (40 loc) · 1004 Bytes
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
name: Build Taskwarrior site
on:
pull_request:
push:
branches: ["master"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Default to bash
defaults:
run:
shell: bash
jobs:
# Build job
#
# This should match the job in gh-pages.yml
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.146.7
steps:
- name: Checkout
uses: actions/checkout@v6
with:
submodules: recursive
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: ${{ env.HUGO_VERSION }}
extended: true
- name: Install Dart Sass
run: sudo snap install dart-sass
- name: Build with Hugo
env:
# For maximum backward compatibility with Hugo modules
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: |
hugo \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"