Skip to content

Commit 00a08a1

Browse files
committed
fix: use Flutter instead of Dart in publish workflow
- onnxruntime requires Flutter SDK - Update both dry-run and publish jobs to use subosito/flutter-action - Replace dart pub with flutter pub commands
1 parent e5896e4 commit 00a08a1

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

.github/workflows/publish-to-pub-dev.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff 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
@@ -43,8 +46,11 @@ jobs:
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 }}
@@ -60,6 +66,6 @@ jobs:
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

0 commit comments

Comments
 (0)