-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (39 loc) · 1.59 KB
/
build-and-verify.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
on:
push: null
schedule:
- cron: "12 3 * * *"
jobs:
build-und-verify:
name: Build and Verify
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: True
- name: Install dependencies
run: sudo apt-get install --yes --quiet codespell git hugo jq libpod-markdown-perl make perl-doc python3-aiohttp python3-flake8 python3-yaml
# The gallery requires at least hugo 0.73 due to changes regarding taxonomies and terms.
# This means at least Debian Buster or Ubuntu Hirsute (21.04) is required.
# But sadly this is a bit complicated:
# - Debian Bullseye: Debian is not supported by github actions (at least not in 2022)
# - Ubuntu Hirsute: works, but it was removed from the Ubuntu mirrors in January 2022
# - Ubuntu Impish: the hugo package requires a newer libc version (compared to Ubuntu Focal)
# The solution is a bit dirty: use Ubuntu Focal as the base image and install the hugo
# package from Debian Bullseye (shipping the same version of libc).
- name: Build website and metadata
run: |
mkdir -p build
./plugin-gallery-generator --show-metadata build >build/metadata.yml
- name: Analyze the code and spelling
run: make lint
- name: Upload static website
uses: actions/upload-artifact@v2
with:
name: website
path: hugo-base/public
- name: Upload metadata
uses: actions/upload-artifact@v2
with:
name: metadata
path: build/metadata.yml