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 shell: bash
jobs: jobs:
# Build job deploy:
build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
HUGO_VERSION: 0.128.0 HUGO_VERSION: 0.128.0
@@ -43,21 +42,11 @@ jobs:
hugo \ hugo \
--minify \ --minify \
--cleanDestinationDir --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 - name: rsync deployments
uses: burnett01/rsync-deployments@7.0.2 uses: burnett01/rsync-deployments@7.0.2
with: with:
switches: -rlp --delete switches: -rlp --delete
path: public/ path: ./public/
remote_path: /var/www/johannes-dokumentation/ remote_path: /var/www/johannes-dokumentation/
remote_host: johannes-dokumentation.z1glr.de remote_host: johannes-dokumentation.z1glr.de
remote_user: deploy_johannes-dokumentation remote_user: deploy_johannes-dokumentation