ci: run tests on all commits, release only on tags
This commit is contained in:
parent
5e8660ebd1
commit
109d62efa3
|
|
@ -4,6 +4,7 @@ name: go-lib/util
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
|
- push
|
||||||
- tag
|
- tag
|
||||||
ref:
|
ref:
|
||||||
- refs/tags/v*
|
- refs/tags/v*
|
||||||
|
|
@ -26,6 +27,8 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- tar czf .build/sources.tar.gz --exclude=.build --exclude=.git --exclude=.drone.yml .
|
- tar czf .build/sources.tar.gz --exclude=.build --exclude=.git --exclude=.drone.yml .
|
||||||
when:
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
status:
|
status:
|
||||||
- success
|
- success
|
||||||
|
|
||||||
|
|
@ -40,5 +43,7 @@ steps:
|
||||||
title: ${DRONE_TAG}
|
title: ${DRONE_TAG}
|
||||||
note: "Release ${DRONE_TAG}\n\nCoverage report: coverage.txt"
|
note: "Release ${DRONE_TAG}\n\nCoverage report: coverage.txt"
|
||||||
when:
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
status:
|
status:
|
||||||
- success
|
- success
|
||||||
Loading…
Reference in New Issue