Skip to content

Commit 1e14c21

Browse files
committed
chore: fix publishing to work on tag push
1 parent 95e8cfe commit 1e14c21

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
name: Publish package
2+
23
on:
3-
release:
4-
types: [created]
4+
push:
5+
tags:
6+
- "v[0-9]+.[0-9]+.[0-9]+*" # tag pattern on pub.dev: 'v{{version}'
7+
58
jobs:
69
publish:
710
# Leveraged from https://github.com/dart-lang/setup-dart/blob/main/.github/workflows/publish.yml but made to support Flutter

0 commit comments

Comments
 (0)