File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed
Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 55 push :
66 branches : [master]
77 # don't run this workflow on version tags
8- tags-ignore : ["v*" ]
8+ tags-ignore : ['v*' ]
99 pull_request_target :
1010 branches : [master]
1111
2020 include :
2121 - version : 3.0.0
2222 - channel : stable
23- - channel : beta
2423
2524 steps :
2625 - name : Clone repository
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: publish
22
33on :
44 push :
5- tags : ["v*" ]
5+ tags : ['v*' ]
66
77jobs :
88 main :
@@ -12,10 +12,17 @@ jobs:
1212 - name : Checkout
1313 uses : actions/checkout@v3
1414
15- - name : Setup Dart
15+ # This action adds a token needed for pub.dev
16+ - name : Set up Dart
1617 uses : dart-lang/setup-dart@v1
1718 with :
18- sdk : 2.17.0
19+ sdk : stable
20+
21+ - name : Set up Flutter
22+ uses : subosito/flutter-action@v2
23+ with :
24+ channel : stable
25+ cache : true
1926
2027 - name : Install mobile-tools
2128 uses : actions/checkout@v3
@@ -41,11 +48,11 @@ jobs:
4148 echo "IS_PRERELEASE=$(is_prerelease flutter_downloader $tag)" >> $GITHUB_ENV
4249
4350 - name : Publish
44- run : dart pub publish -f
51+ run : dart pub publish --force
4552
4653 - name : Create release
4754 uses : softprops/action-gh-release@v1
4855 with :
4956 name : ${{ github.ref_name }}
50- body : " [See changelog on pub.dev](${{ env.RELEASE_NOTES }})"
57+ body : ' [See changelog on pub.dev](${{ env.RELEASE_NOTES }})'
5158 prerelease : ${{ env.IS_PRERELEASE }}
You can’t perform that action at this time.
0 commit comments