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
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user