From 558c37f7ad82db737d0ee0d4faf1b5b60675eb8a Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Wed, 21 Feb 2024 12:04:33 +0100 Subject: [PATCH] Upload only when main --- .woodpecker/build.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml index d9848ae..bf3898c 100644 --- a/.woodpecker/build.yaml +++ b/.woodpecker/build.yaml @@ -1,7 +1,6 @@ --- when: event: push - branch: main steps: build: name: Build the CV @@ -23,7 +22,10 @@ steps: md-to-pdf index.md --launch-options '{ "args": ["--no-sandbox"] }' - mkdir $CI_WORKSPACE/cv - mv index.pdf $CI_WORKSPACE/cv/n.rodionov.pdf + upload: + when: + branch: main name: Upload the CV image: rclone/rclone:latest secrets: