Skip to content

Commit

Permalink
github actions: fix tag publish conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
majodev committed Oct 29, 2024
1 parent f16757a commit 3fee28c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- "**"
tags:
- "**"

env:
DOCKER_ENV_FILE: ".github/workflows/docker.env"
Expand Down Expand Up @@ -63,7 +65,8 @@ jobs:
run: docker rm builder

publish:
if: github.event_name == 'tag' || (github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev'))
if: startsWith(github.ref, 'refs/tags/v') || (github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev'))

needs:
- build-test
runs-on: ubuntu-latest
Expand Down

0 comments on commit 3fee28c

Please sign in to comment.