Upload only when main

This commit is contained in:
Nikolai Rodionov 2024-02-21 12:04:33 +01:00
parent 75b958bc6e
commit 558c37f7ad
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD

View File

@ -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: