From dfca58b0943728d21158373684ea12343b1d20a0 Mon Sep 17 00:00:00 2001 From: Mathieu Broillet Date: Sun, 11 Jun 2023 13:27:06 +0200 Subject: [PATCH] update drone for staging and prod --- .drone.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 66ae3c5..7861231 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,11 +20,18 @@ steps: - hugo version # - ln -s /home/hebron/hugo_resources/production resources -- name: build +- name: build staging + commands: + - hugo --gc --minify --buildDrafts -b https://blog.broillet.ch/ +- name: copy staging build + commands: + - mkdir -p /var/www/html/staging/ + - cp -R public/* /var/www/html/staging/ + +- name: build production commands: - hugo --gc --minify -b https://blog.broillet.ch/ - -- name: copy built website +- name: copy production build commands: - - mkdir -p /var/www/html/ - - cp -R public/* /var/www/html/ \ No newline at end of file + - mkdir -p /var/www/html/prod/ + - cp -R public/* /var/www/html/prod/ \ No newline at end of file