Skip to content

Commit

Permalink
Merge pull request #2 from monstar-lab-oss/workflows
Browse files Browse the repository at this point in the history
workflows
  • Loading branch information
nivisi authored Nov 22, 2023
2 parents 211d769 + cb82b47 commit 4a8f851
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/push_to_pubdev_on_tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Publish to pub.dev

on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: ''

jobs:
publish:
permissions:
id-token: write # Required for authentication using OIDC
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
with:
environment: pub.dev
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ Modify your [`analysis_options.yaml`](https://dart.dev/tools/analysis#the-analys
include: package:monstarlab_lints/analysis_options.yaml
```

## Maintaining

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`.


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

0 comments on commit 4a8f851

Please sign in to comment.