File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Package
2+
3+ on :
4+ push :
5+ tags :
6+ # must align with the tag-pattern configured on pub.dev, often just replace
7+ # with [0-9]+.[0-9]+.[0-9]+*
8+ # - 'v[0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: 'v'
9+ # If you prefer tags like '1.2.3', without the 'v' prefix, then use:
10+ - ' [0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: ''
11+ # If you repository contains multiple packages consider a pattern like:
12+ # - 'my_package_name-v[0-9]+.[0-9]+.[0-9]+*'
13+ workflow_dispatch :
14+
15+ jobs :
16+ publish :
17+ permissions :
18+ id-token : write # This is required for authentication using OIDC
19+ runs-on : ubuntu-latest
20+ steps :
21+ - uses : actions/checkout@v3
22+ - uses : dart-lang/setup-dart@v1
23+ - name : Install Flutter
24+ uses : subosito/flutter-action@v2
25+ with :
26+ channel : stable
27+ - run : flutter --version
28+ - name : Install dependencies
29+ run : flutter pub get
30+ - name : Format code
31+ run : dart format --set-exit-if-changed .
32+ - name : Dry Run
33+ run : flutter pub publish --dry-run
34+ - name : Publish
35+ run : dart pub publish --force
You can’t perform that action at this time.
0 commit comments