From a2231f3ed159d62cc013cb8d5c534a55ba0eb495 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Mon, 29 Aug 2022 13:39:19 -0500 Subject: [PATCH] Restrict building of releases to specific tag pattern. --- .drone.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index ebd5734..7c6507f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -17,12 +17,10 @@ steps: - name: release image: rust commands: - - cargo install -f git-cliff - - git-cliff --output CHANGELOG.md - - cargo publish --allow-dirty + - cargo publish when: - event: - - tag + ref: + - refs/tags/v* environment: CARGO_REGISTRY_TOKEN: from_secret: cargo_registry_token