1- # #.title
2- # # ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
3- # #
4- # # Dart/Flutter (DF) Packages by dev-cetera.com & contributors. The use of this
5- # # source code is governed by an MIT-style license described in the LICENSE
6- # # file located in this project's root directory.
7- # #
8- # # See: https://opensource.org/license/mit
9- # #
10- # # ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
11- # #.title~
12-
1+ # .github/workflows/publish.yml
132name : Publish to pub.dev
143
15- # # -----------------------------------------------------------------------------
16-
174on :
185 push :
196 tags :
20- # This regex matches tags like 'v1.2.3' and 'v1.2.3+4'
21- - ' v[0-9]+.[0-9]+.[0-9]+*'
22-
23- # # -----------------------------------------------------------------------------
7+ - ' v[0-9]+.[0-9]+.[0-9]+' # tag pattern on pub.dev: 'v{{version}'
248
9+ # Publish using custom workflow
2510jobs :
2611 publish :
27- # This permission is required for OIDC authentication with pub.dev.
2812 permissions :
29- id-token : write
30-
31- # This calls the official, reusable workflow from the Dart team.
32- # It handles checkout, setup, auth, and publishing automatically.
33- uses : dart-lang/setup-dart/.github/workflows/publish.yml@v1
13+ id-token : write # Required for authentication using OIDC
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v3
17+ - uses : dart-lang/setup-dart@v1
18+ - name : Install dependencies
19+ run : dart pub get
20+ # Here you can insert custom steps you need
21+ # - run: dart tool/generate-code.dart
22+ - name : Publish
23+ run : dart pub publish --force
0 commit comments