mirror of
https://github.com/agresdominik/website.git
synced 2026-07-21 16:10:54 +00:00
cleanup
This commit is contained in:
Executable
+4
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Same check as CI: abort the commit if Hugo can't build cleanly.
|
||||||
|
make build || exit 1
|
||||||
|
make clean
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: github-actions
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: weekly
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
name: Build Check
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches: [main]
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: peaceiris/actions-hugo@v3
|
||||||
|
with:
|
||||||
|
hugo-version: "0.152.2"
|
||||||
|
extended: true
|
||||||
|
|
||||||
|
# Fails the run on any Hugo error (broken templates, shortcodes, refs).
|
||||||
|
- run: hugo --gc --minify --panicOnWarning
|
||||||
|
working-directory: blog
|
||||||
@@ -21,6 +21,8 @@ jobs:
|
|||||||
key: ${{ secrets.VPS_SSH_KEY }}
|
key: ${{ secrets.VPS_SSH_KEY }}
|
||||||
port: 22
|
port: 22
|
||||||
script: |
|
script: |
|
||||||
|
set -e
|
||||||
|
|
||||||
# Pull latest changes
|
# Pull latest changes
|
||||||
cd /home/agres/website
|
cd /home/agres/website
|
||||||
git pull origin main
|
git pull origin main
|
||||||
|
|||||||
@@ -6,6 +6,9 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>{{ .Site.Params.browserTitle }} :: {{ .Title }}</title>
|
<title>{{ .Site.Params.browserTitle }} :: {{ .Title }}</title>
|
||||||
{{ with .Description }}<meta name="description" content="{{ . }}">{{ end }}
|
{{ with .Description }}<meta name="description" content="{{ . }}">{{ end }}
|
||||||
|
<link rel="canonical" href="{{ .Permalink }}">
|
||||||
|
{{ range .AllTranslations }}<link rel="alternate" hreflang="{{ .Language.Lang }}" href="{{ .Permalink }}">
|
||||||
|
{{ end }}
|
||||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
|
||||||
<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png">
|
<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png">
|
||||||
<link rel="icon" href="/favicon.ico" sizes="any">
|
<link rel="icon" href="/favicon.ico" sizes="any">
|
||||||
|
|||||||
Reference in New Issue
Block a user