Skip to content

Commit c2b76f5

Browse files
authored
ci: Fix building of tags
Tags were not built because `branches-ignore` was added so only branches were built. We also specify that only tags starting with `v` should produce a GitHub release (and pypi upload), just in case some tag is added that is not really a new version. Signed-off-by: Leandro Lucarella <leandro.lucarella@frequenz.com>
1 parent d81bd29 commit c2b76f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
merge_group:
55
pull_request:
66
push:
7+
tags:
8+
- '*'
79
branches-ignore:
810
# Ignore pushes to merge queues.
911
# We only want to test the merge commit (`merge_group` event), the hashes
@@ -193,7 +195,7 @@ jobs:
193195
create-github-release:
194196
needs: ["publish-docs"]
195197
# Create a release only on tags creation
196-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
198+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
197199
permissions:
198200
# We need write permissions on contents to create GitHub releases and on
199201
# discussions to create the release announcement in the discussion forums

0 commit comments

Comments
 (0)