From 385ff13b7e2b40214d74a48d863806f8ea0f7d23 Mon Sep 17 00:00:00 2001 From: iqfareez Date: Thu, 12 May 2022 07:41:08 +0800 Subject: [PATCH] :green_heart: Set pwa strategy to none --- .github/workflows/firebase-hosting-merge.yml | 2 +- .github/workflows/firebase-hosting-pull-request.yml | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index 9e340d8..e2f16d0 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -19,7 +19,7 @@ jobs: channel: "stable" - run: flutter --version - run: flutter pub get - - run: flutter build web + - run: flutter build web --pwa-strategy=none - uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index 0e9c8c4..d1dbcba 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -11,10 +11,13 @@ jobs: run: working-directory: ./example steps: - - uses: actions/checkout@v2 - - run: >- - git clone https://github.com/flutter/flutter.git -b stable && export - PATH="$PATH:`pwd`/flutter/bin" && flutter build web + - uses: actions/checkout@v3 + - uses: subosito/flutter-action@v2 + with: + channel: "stable" + - run: flutter --version + - run: flutter pub get + - run: flutter build web --pwa-strategy=none - uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: "${{ secrets.GITHUB_TOKEN }}"