Skip to content

Commit ec495b8

Browse files
committed
Merge branch 'main' into feat/robert
2 parents 42ed30e + bffccf6 commit ec495b8

File tree

3 files changed

+73
-1
lines changed

3 files changed

+73
-1
lines changed

.github/pull_request_template.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## Description
2+
3+
<!-- Add a short description here / Eine kurze Beschreibung hier einfügen -->
4+
5+
## Checklist
6+
<!-- Check fields with: [x] / Abhaken von Punkten: [x] -->
7+
8+
- [ ] Changed the date in updatet content pages <!-- Auf Inhaltsseiten wurde das Bearbeitungsdatum angepasst -->
9+
10+
The content was modified in the following languages: <!-- Der Inhalt wurde für die folgenden Sprachen angepasst -->
11+
- [ ] English
12+
- [ ] German

.github/workflows/hugo.yaml renamed to .github/workflows/deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
env:
5555
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
5656
HUGO_ENVIRONMENT: production
57-
TZ: America/Los_Angeles
57+
TZ: Europe/Berlin
5858
run: |
5959
hugo \
6060
--gc \

.github/workflows/pullrequest.yaml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Test to build the hugo site
2+
name: Test Hugo Build
3+
4+
on:
5+
# Runs on merges targeting the default branch
6+
pull_request:
7+
branches:
8+
- main
9+
10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
13+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
14+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
15+
concurrency:
16+
group: "pages"
17+
cancel-in-progress: false
18+
19+
# Default to bash
20+
defaults:
21+
run:
22+
shell: bash
23+
24+
jobs:
25+
# Build job
26+
build:
27+
runs-on: ubuntu-latest
28+
env:
29+
HUGO_VERSION: 0.141.0
30+
steps:
31+
- name: Install Hugo CLI
32+
run: |
33+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
34+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
35+
- name: Install Dart Sass
36+
run: sudo snap install dart-sass
37+
- name: Checkout
38+
uses: actions/checkout@v4
39+
with:
40+
submodules: recursive
41+
fetch-depth: 0
42+
- name: Setup Pages
43+
id: pages
44+
uses: actions/configure-pages@v5
45+
- name: Install Node.js dependencies
46+
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
47+
- name: Build with Hugo
48+
env:
49+
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
50+
HUGO_ENVIRONMENT: production
51+
TZ: Europe/Berlin
52+
run: |
53+
hugo \
54+
--gc \
55+
--minify \
56+
--baseURL "${{ steps.pages.outputs.base_url }}/"
57+
- name: Create custom 404 page
58+
run: cp public/en/404.html public/404.html
59+
- name: Initialize search index
60+
run: npx -y pagefind --site public

0 commit comments

Comments
 (0)