Showing
1 changed file
with
20 additions
and
0 deletions
.github/workflows/publish.yml
0 → 100644
| 1 | +# .github/workflows/publish.yml | ||
| 2 | +name: Publish to pub.dev | ||
| 3 | + | ||
| 4 | +on: | ||
| 5 | + push: | ||
| 6 | + tags: | ||
| 7 | + # must align with the tag-pattern configured on pub.dev, often just replace | ||
| 8 | + # with [0-9]+.[0-9]+.[0-9]+* | ||
| 9 | + - 'v[0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: 'v' | ||
| 10 | + # If you prefer tags like '1.2.3', without the 'v' prefix, then use: | ||
| 11 | + # - '[0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: '' | ||
| 12 | + # If your repository contains multiple packages consider a pattern like: | ||
| 13 | + # - 'my_package_name-v[0-9]+.[0-9]+.[0-9]+*' | ||
| 14 | + | ||
| 15 | +# Publish using the reusable workflow from dart-lang. | ||
| 16 | +jobs: | ||
| 17 | + publish: | ||
| 18 | + uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 | ||
| 19 | + # with: | ||
| 20 | + # working-directory: path/to/package/within/repository |
-
Please register or login to post a comment