From 06bc9d14c94636acac5e323e6032ca016d08c4cd Mon Sep 17 00:00:00 2001 From: vrifox Date: Wed, 5 Apr 2023 23:34:47 +0200 Subject: [PATCH] [CD] specific dev build step --- .woodpecker.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 758f8cb..060845e 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,9 +1,20 @@ pipeline: - build: + build-stable: image: archlinux commands: - pacman -Syu --noconfirm hugo git - hugo --destination /woodpecker/build/ --minify --cleanDestinationDir + when: + branch: [ main ] + + build-dev: + image: archlinux + commands: + - pacman -Syu --noconfirm hugo git + - hugo --destination /woodpecker/build/ --baseURL "https://dev.vrifox.cc/" --cleanDestinationDir + when: + branch: + exclude: [ main ] upload-stable: image: archlinux