Skip to content

Commit 3fee28c

Browse files
committed
github actions: fix tag publish conditional
1 parent f16757a commit 3fee28c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: .github/workflows/build-test-publish.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- "**"
7+
tags:
8+
- "**"
79

810
env:
911
DOCKER_ENV_FILE: ".github/workflows/docker.env"
@@ -63,7 +65,8 @@ jobs:
6365
run: docker rm builder
6466

6567
publish:
66-
if: github.event_name == 'tag' || (github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev'))
68+
if: startsWith(github.ref, 'refs/tags/v') || (github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev'))
69+
6770
needs:
6871
- build-test
6972
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)