diff --git a/.drone.yml b/.drone.yml
index 2813168..92acd19 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -5,22 +5,26 @@ type: docker
name: default
steps:
+ - name: build
+ image: plugins/hugo
+ settings:
+ extended: yes
+ validate: yes
+
- name: deploy
- image: alpine:3.12
- volumes:
- - name: site
- path: /var/www/html
- commands:
- - apk add --no-cache hugo
- - hugo
- - cp -r public/* /var/www/html
+ image: appleboy/drone-scp
+ settings:
+ host: dragon.luj0ga.de
+ username: www
+ key:
+ from_secret: ssh_key
+ passphrase:
+ from_secret: ssh_passphrase
+ target: /srv/www/sites/www.franconian.net/
+ source: public/*
+ rm: yes
when:
event:
- push
branch:
- main
-
-volumes:
- - name: site
- host:
- path: /srv/www/sites/www.franconian.net
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 3e825e7..ae7c827 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -7,7 +7,7 @@
{{ .Site.Title }}
{{ end }}
- {{ $style := resources.Get "style.scss" | resources.ToCSS | minify }}
+ {{ $style := resources.Get "style.scss" | resources.ToCSS (dict "outputStyle" "compressed") }}