ci: run tests on all commits, release only on tags
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user