ci: run tests on all commits, release only on tags

This commit is contained in:
Stefan Goppelt 2026-03-29 16:34:14 +02:00
parent 5e8660ebd1
commit 109d62efa3
1 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,7 @@ name: go-lib/util
trigger:
event:
- push
- tag
ref:
- refs/tags/v*
@ -26,6 +27,8 @@ steps:
commands:
- tar czf .build/sources.tar.gz --exclude=.build --exclude=.git --exclude=.drone.yml .
when:
event:
- tag
status:
- success
@ -40,5 +43,7 @@ steps:
title: ${DRONE_TAG}
note: "Release ${DRONE_TAG}\n\nCoverage report: coverage.txt"
when:
event:
- tag
status:
- success