Skip to content

Commit f8ac72a

Browse files
committed
changed deployment pipeline
1 parent 702afab commit f8ac72a

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/publish-to-pubdev.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,20 @@ jobs:
1313
id-token: write # Required for authentication using OIDC
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v3
17-
- uses: dart-lang/setup-dart@v1
18-
- name: Install dependencies
16+
- uses: actions/checkout@v4
17+
- name: Install Flutter
18+
uses: subosito/flutter-action@v2
19+
with:
20+
flutter-version: '3.29.2'
21+
channel: 'stable'
22+
- name: Install dependencies 📦
1923
run: flutter pub get
20-
# Here you can insert custom steps you need
21-
# - run: dart tool/generate-code.dart
24+
- name: Analyze 🔍
25+
run: flutter analyze
26+
- name: Check Publish Warnings 🙏🏽
27+
run: dart pub publish --dry-run
28+
- name: Clean example project 🧹
29+
run: cd example && flutter clean .
30+
- uses: dart-lang/setup-dart@v1
2231
- name: Publish
2332
run: flutter pub publish --force

0 commit comments

Comments
 (0)