mirror of
https://github.com/agresdominik/website.git
synced 2026-07-21 16:10:54 +00:00
cleanup
This commit is contained in:
@@ -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 }}
|
||||
port: 22
|
||||
script: |
|
||||
set -e
|
||||
|
||||
# Pull latest changes
|
||||
cd /home/agres/website
|
||||
git pull origin main
|
||||
|
||||
Reference in New Issue
Block a user