-
Notifications
You must be signed in to change notification settings - Fork 496
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
李卓原
committed
May 15, 2023
1 parent
8787d63
commit 1359f64
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# .github/workflows/publish.yml | ||
name: Publish to pub.dev | ||
|
||
on: | ||
push: | ||
tags: | ||
# must align with the tag-pattern configured on pub.dev, often just replace | ||
# with [0-9]+.[0-9]+.[0-9]+* | ||
- 'v[0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: 'v' | ||
# If you prefer tags like '1.2.3', without the 'v' prefix, then use: | ||
# - '[0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: '' | ||
# If your repository contains multiple packages consider a pattern like: | ||
# - 'my_package_name-v[0-9]+.[0-9]+.[0-9]+*' | ||
|
||
# Publish using the reusable workflow from dart-lang. | ||
jobs: | ||
publish: | ||
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 | ||
# with: | ||
# working-directory: path/to/package/within/repository |