From 657c74e4e57c8017f582f318d385f45b84b7f43c Mon Sep 17 00:00:00 2001 From: Guillem Borrell Nogueras Date: Mon, 21 Nov 2022 00:05:52 +0100 Subject: [PATCH] Added release as conditional step --- .woodpecker.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index cca7a5a..d1280df 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,5 +1,9 @@ pipeline: - build: + release: image: rust:1-buster + when: + event: tag + secrets: [ gitea_api_key ] commands: - - cargo install --path . \ No newline at end of file + - cargo build --release + - curl --user guillem:$GITEA_API_KEY https://git.guillemborrell.es/api/packages/guillem/generic/dr/$CI_COMMIT_TAG/dr \ No newline at end of file