simplified github action

This commit is contained in:
z1glr
2025-06-20 14:28:24 +02:00
parent 14a0615247
commit a0a39929a9

View File

@@ -21,8 +21,7 @@ defaults:
shell: bash
jobs:
# Build job
build:
deploy:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.128.0
@@ -43,21 +42,11 @@ jobs:
hugo \
--minify \
--cleanDestinationDir
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public
# Deployment job
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: rsync deployments
uses: burnett01/rsync-deployments@7.0.2
with:
switches: -rlp --delete
path: public/
path: ./public/
remote_path: /var/www/johannes-dokumentation/
remote_host: johannes-dokumentation.z1glr.de
remote_user: deploy_johannes-dokumentation