From 686af92196a48eb5daf42402f9e04a3d73faad33 Mon Sep 17 00:00:00 2001 From: Kang Chang Hwan <110464205+changhwan77@users.noreply.github.com> Date: Wed, 7 Feb 2024 13:41:55 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20flutter=20build=20=EC=98=A4=EB=A5=98?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 깃허브 액션에서 flutter build web 오류로 자동 배포가 안되는 문제를 해결하기 위한 로직 추가 --- .github/workflows/firebase-hosting-pull-request.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index 1bef726..c947280 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -9,6 +9,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: 🐦 Setup Flutter + uses: subosito/flutter-action@v2 + with: + channel: "stable" + flutter-version: 3.3.8 + - run: flutter pub get - run: flutter build web - uses: FirebaseExtended/action-hosting-deploy@v0 with: From 3e002d11cf156450ba4d1c91524ca459f6df1b17 Mon Sep 17 00:00:00 2001 From: Kang Chang Hwan <110464205+changhwan77@users.noreply.github.com> Date: Wed, 7 Feb 2024 13:58:13 +0900 Subject: [PATCH 2/2] Update firebase-hosting-pull-request.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dart SDK 버전이 호환되지 않는 문제 해결하기 위한 코드 추가 --- .github/workflows/firebase-hosting-pull-request.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index c947280..18369c2 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -14,8 +14,11 @@ jobs: with: channel: "stable" flutter-version: 3.3.8 + + - run: flutter upgrade - run: flutter pub get - run: flutter build web + - uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: '${{ secrets.GITHUB_TOKEN }}'