Skip to content

Commit 5412f5a

Browse files
committed
Added publishing workflow
1 parent e57dfd3 commit 5412f5a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/publish.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Publish to pub.dev
2+
3+
on:
4+
push:
5+
tags:
6+
# must align with the tag-pattern configured on pub.dev, often just replace
7+
# {{version}} with [0-9]+.[0-9]+.[0-9]+
8+
- 'v[0-9]+.[0-9]+.[0-9]+'
9+
workflow_dispatch:
10+
11+
# Publish using the reusable workflow from dart-lang.
12+
jobs:
13+
publish:
14+
permissions:
15+
id-token: write # Required for authentication using OIDC
16+
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
17+
# with:
18+
# working-directory: path/to/package/within/repository

0 commit comments

Comments
 (0)