Skip to content

Commit 7267294

Browse files
committed
only update artifact if using the latest flutter sdk in ci
1 parent caaf7c6 commit 7267294

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/branch.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
- name: Run Tests with Coverage
6262
run: flutter test -r expanded --coverage
6363
- name: Run Codecov
64+
if: ${{ matrix.sdk == '' }}
6465
uses: codecov/codecov-action@v5
6566
env:
6667
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
@@ -92,6 +93,7 @@ jobs:
9293
- name: Build Android Application
9394
run: flutter build apk --dart-define=COMMIT_SHA=${{ github.sha }} --dart-define=flutter.flutter_map.unblockOSM="${{ secrets.UNBLOCK_OSM }}"
9495
- name: Archive Artifact
96+
if: ${{ matrix.sdk == '' }}
9597
uses: actions/upload-artifact@v4
9698
with:
9799
name: apk-build
@@ -119,9 +121,11 @@ jobs:
119121
- name: Build Windows Application
120122
run: flutter build windows --dart-define=COMMIT_SHA=${{ github.sha }} --dart-define=flutter.flutter_map.unblockOSM="${{ secrets.UNBLOCK_OSM }}"
121123
- name: Create Windows Application Installer
124+
if: ${{ matrix.sdk == '' }}
122125
run: iscc "windowsApplicationInstallerSetup.iss"
123126
working-directory: .
124127
- name: Archive Artifact
128+
if: ${{ matrix.sdk == '' }}
125129
uses: actions/upload-artifact@v4
126130
with:
127131
name: exe-build
@@ -150,6 +154,7 @@ jobs:
150154
run: flutter build web --wasm --dart-define=COMMIT_SHA=${{ github.sha }} --dart-define=flutter.flutter_map.unblockOSM="${{ secrets.UNBLOCK_OSM }}"
151155
- name: Archive Artifact
152156
uses: actions/upload-artifact@v4
157+
if: ${{ matrix.sdk == '' }}
153158
with:
154159
name: web-build
155160
path: example/build/web

0 commit comments

Comments
 (0)