mirror of
https://github.com/agresdominik/website.git
synced 2026-07-21 16:10:54 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 399a8cb73d | |||
| e9b9656ce0 | |||
| 2afac7f49a | |||
| 04e9e4f6b8 | |||
| c4cababe98 |
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@v7
|
||||
|
||||
- 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
|
||||
@@ -11,7 +11,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v7
|
||||
|
||||
- name: Deploy to VPS
|
||||
uses: appleboy/ssh-action@v0.1.9
|
||||
@@ -21,6 +21,8 @@ jobs:
|
||||
key: ${{ secrets.VPS_SSH_KEY }}
|
||||
port: 22
|
||||
script: |
|
||||
set -e
|
||||
|
||||
# Pull latest changes
|
||||
cd /home/agres/website
|
||||
git pull origin main
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
# Private Google Datei
|
||||
googleeb4005177cc2703c.html
|
||||
|
||||
# public folder
|
||||
public/
|
||||
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{ .Site.Params.browserTitle }} :: {{ .Title }}</title>
|
||||
{{ 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/png" sizes="96x96" href="/favicon-96x96.png">
|
||||
<link rel="icon" href="/favicon.ico" sizes="any">
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
google-site-verification: googleeb4005177cc2703c.html
|
||||
Reference in New Issue
Block a user