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