From c7dc7e05be6ae463ca53a85cf682d10aeb1d5279 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Wed, 14 Apr 2021 00:37:31 -0500 Subject: [PATCH] Compress blog into tar.gz before upload --- .drone.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index c28db30..d250d8c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,7 +13,12 @@ steps: image: mapitman/docker-hugo commands: - hugo version - - hugo --minify -d blog/ + - hugo --minify + + - name: Compress public folder + image: alpine/latest + commands: + - tar -czvf deploy.tar.gz public/* - name: Upload files image: appleboy/drone-scp @@ -23,7 +28,6 @@ steps: username: droneci key: from_secret: SSH_KEY - target: /tmp/ + target: /tmp/blog/ rm: true - source: - - blog/ + source: deploy.tar.gz