Skip to content

Commit 4a8f851

Browse files
authored
Merge pull request #2 from monstar-lab-oss/workflows
workflows
2 parents 211d769 + cb82b47 commit 4a8f851

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Publish to pub.dev
2+
3+
on:
4+
push:
5+
tags:
6+
- '[0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: ''
7+
8+
jobs:
9+
publish:
10+
permissions:
11+
id-token: write # Required for authentication using OIDC
12+
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
13+
with:
14+
environment: pub.dev

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ Modify your [`analysis_options.yaml`](https://dart.dev/tools/analysis#the-analys
3030
include: package:monstarlab_lints/analysis_options.yaml
3131
```
3232

33+
## Maintaining
34+
35+
To publish a new version to pub.dev, create a new tag with required version used as a title. For example, creating a tag `1.0.3` will result in pushing the package to pub.dev with version `1.0.3`.
36+
3337

3438
<!-- References -->
3539
[pub-version-img]: https://img.shields.io/badge/pub-v1.0.2-0175c2?logo=flutter

0 commit comments

Comments
 (0)