Skip to content

Commit e2c6874

Browse files
more correct syntax for tagged releases (#14)
* more correct syntax * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update publish.yaml * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent caf9e4e commit e2c6874

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/publish.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@ name: Publish
33
on:
44
# Only on merges into main
55
push:
6-
branches:
7-
- main
6+
tags: v[0-9]+.[0-9]+.[0-9]+
87

98
jobs:
109
publish:
11-
if: startsWith(github.ref, 'refs/tags/v') # Only if tagged
1210
runs-on: ubuntu-latest
1311

1412
steps:

0 commit comments

Comments
 (0)