-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (46 loc) · 1.25 KB
/
website.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
# SPDX-FileCopyrightText: The ilo Authors
# SPDX-License-Identifier: 0BSD
name: Publish Website
on:
schedule:
- cron: 45 4 * * MON
push:
branches:
- main
paths:
- docs/**
jobs:
website:
runs-on: ubuntu-latest
steps:
- id: checkout
name: Clone Git Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- id: hugo
name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: latest
- id: previous
name: Get Last Release
run: echo "::set-output name=version::$(git describe --abbrev=0 --tags)"
- id: build
name: Build Website
run: hugo --minify --printI18nWarnings --printPathWarnings --printUnusedTemplates --source docs
env:
ILO_RELEASE: ${{ steps.previous.outputs.version }}
- id: htmltest
name: Run htmltest
uses: wjdp/htmltest-action@master
with:
config: ./docs/htmltest.yml
- id: deploy
name: Deploy Website
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/public
force_orphan: true
cname: ilo.projects.metio.wtf