simplified github action
This commit is contained in:
15
.github/workflows/hugo.yaml
vendored
15
.github/workflows/hugo.yaml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user