Skip to content

Commit 4d43eba

Browse files
committed
update publish.yml
1 parent 5406627 commit 4d43eba

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ jobs:
1616
- uses: actions/checkout@v3
1717
- uses: subosito/flutter-action@v2
1818
with:
19-
flutter-version: "3.29.0"
2019
channel: 'stable'
2120
cache: true
22-
21+
2322
- name: Run Flutter build
2423
run: |
2524
# Enable web config in flutter

.github/workflows/publish.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,20 @@ jobs:
1818
- name: Checkout repository
1919
uses: actions/checkout@v4
2020

21-
- name: Setup Dart
22-
uses: dart-lang/setup-dart@v1
21+
- name: Setup Flutter
22+
uses: subosito/flutter-action@v2
23+
with:
24+
flutter-version: "stable"
25+
cache: true
2326

2427
- name: Install dependencies
25-
run: dart pub get
28+
run: flutter pub get
29+
30+
- name: Authenticate with pub.dev
31+
run: echo "${{ secrets.TOKEN }}" | dart pub token add https://pub.dev
2632

2733
- name: Verify package
28-
run: dart pub publish --dry-run
34+
run: flutter pub publish --dry-run
2935

3036
- name: Publish to pub.dev
31-
run: dart pub publish
32-
env:
33-
PUB_DEV_ACCESS_TOKEN: ${{ secrets.TOKEN }}
37+
run: flutter pub publish

0 commit comments

Comments
 (0)