File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,10 +31,13 @@ jobs:
3131 steps :
3232 - name : Checkout repository
3333 uses : actions/checkout@v5
34- - name : Setup Dart
35- uses : dart-lang/setup-dart@v1
34+ - name : Setup Flutter
35+ uses : subosito/flutter-action@v2
36+ with :
37+ flutter-version : ' stable'
38+ channel : ' stable'
3639 - name : Dry-run publish
37- run : dart pub publish --dry-run
40+ run : flutter pub publish --dry-run
3841
3942 publish :
4043 name : Publish
4346 steps :
4447 - name : Checkout repository
4548 uses : actions/checkout@v5
46- - name : Setup Dart
47- uses : dart-lang/setup-dart@v1
49+ - name : Setup Flutter
50+ uses : subosito/flutter-action@v2
51+ with :
52+ flutter-version : ' stable'
53+ channel : ' stable'
4854 - name : Configure pub.dev credentials
4955 env :
5056 PUB_CREDENTIALS_JSON : ${{ secrets.PUB_CREDENTIALS_JSON }}
6066 printf "%s" "${PUB_CREDENTIALS_JSON}" > ~/.pub-cache/credentials.json
6167 chmod 600 ~/.pub-cache/credentials.json
6268 - name : Dry-run publish
63- run : dart pub publish --dry-run
69+ run : flutter pub publish --dry-run
6470 - name : Publish to pub.dev
65- run : dart pub publish -f
71+ run : flutter pub publish -f
You can’t perform that action at this time.
0 commit comments