Skip to content

Commit 45b0876

Browse files
committed
fix publish action
1 parent 16dade0 commit 45b0876

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

.github/workflows/flutter.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -51,26 +51,14 @@ jobs:
5151
restore-keys: |
5252
build-pubspec-
5353
54-
- name: Cache build runner
55-
uses: actions/cache@v4.2.4
56-
with:
57-
path: |
58-
**/.dart_tool
59-
**/*.g.dart
60-
**/*.mocks.dart
61-
**/*.config.dart
62-
key: build-runner-${{ hashFiles('**/asset_graph.json', '**/*.dart', '**/pubspec.lock', '**/outputs.json') }}
63-
restore-keys: |
64-
build-runner-
65-
6654
- name: Download pub dependencies
6755
run: flutter pub get
6856

6957
- name: Upgrade pub dependencies
7058
run: flutter pub upgrade
7159

72-
# - name: Run analyzer
73-
# run: flutter analyze
60+
- name: Run analyzer
61+
run: flutter analyze
7462

7563
- name: Install coverage tools
7664
run: flutter pub global activate coverage

.github/workflows/publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ jobs:
3939
needs: 'test'
4040
permissions:
4141
id-token: write # Required for authentication using OIDC
42-
uses: git-elliot/setup-dart/.github/workflows/flutter_publish.yml@main # Added build_runner step
42+
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
4343
with:
44-
environment: 'pub.dev'
45-
build_runner: true
44+
environment: 'pub.dev'

0 commit comments

Comments
 (0)