From a2be39de28b1e15d2f530566ba35759bd15881d4 Mon Sep 17 00:00:00 2001 From: ggurdin <46800240+ggurdin@users.noreply.github.com> Date: Thu, 5 Dec 2024 09:50:09 -0500 Subject: [PATCH] added flutter clean / pub get lines before release build lines to resolve errors in release workflow (#1147) --- .github/workflows/release.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 491cae1215..a82c65d7dd 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -34,7 +34,11 @@ jobs: - name: Prepare web run: ./scripts/prepare-web.sh - name: Build Release Web - run: flutter build web --dart-define=FLUTTER_WEB_CANVASKIT_URL=canvaskit/ --release --source-maps + run: | + flutter config --enable-web + flutter clean + flutter pub get + flutter build web --dart-define=FLUTTER_WEB_CANVASKIT_URL=canvaskit/ --release --source-maps - name: Create archive run: tar -czf pangeachat-web.tar.gz build/web/ - name: Upload Web Build