Skip to content

Commit

Permalink
Be more restrictive for releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
Kleidukos committed Jul 20, 2024
1 parent 4ae4ae6 commit 61f298f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: ['main']
tags:
- "v*.*.*"
- "v*"

jobs:
generate-matrix:
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
prerelease-head:
name: Create a GitHub prerelease with the binary artifacts
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
if: startsWith(github.ref, 'refs/tags/v')
needs: ['tests', 'build-alpine']

steps:
Expand Down

0 comments on commit 61f298f

Please sign in to comment.