Skip to content

Commit 4d3a56b

Browse files
authored
chore(meta): added automatic publishing of package to pub.dev on tag creation (#2059)
* Added automatic publishing of package to pub.dev on tag creation Renamed other workflows * Minor improvement
1 parent 7d1372f commit 4d3a56b

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

.github/workflows/branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Branch & Fork CI/CD"
1+
name: "Branch & PR"
22
on:
33
push:
44
branches: [ '!master' ]

.github/workflows/master.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "'fleaflet/flutter_map' 'master' CI/CD"
1+
name: "Master (Test & Build)"
22
on:
33
push:
44
branches:

.github/workflows/publish.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Publish Package
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v[0-9]+.[0-9]+.[0-9]+'
7+
8+
jobs:
9+
publish:
10+
name: "Publish To pub.dev"
11+
permissions:
12+
id-token: write
13+
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
14+
with:
15+
environment: 'pub.dev'

0 commit comments

Comments
 (0)