From b8e36fddd56f569abc09b5a9725d1276789b0f1d Mon Sep 17 00:00:00 2001 From: Simon Lightfoot Date: Sat, 7 Oct 2023 16:14:40 +0100 Subject: [PATCH] fix: update github actions to use Flutters version of Dart. (#2) --- .github/workflows/firebase-hosting-merge.yml | 4 +++- .github/workflows/firebase-hosting-pull-request.yml | 4 +++- README.md | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index 3891a18..3b80d61 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -11,7 +11,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: dart-lang/setup-dart@v1 + - uses: subosito/flutter-action@v2 + with: + channel: 'stable' - run: dart pub global activate webdev && webdev build - uses: FirebaseExtended/action-hosting-deploy@v0 with: diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index 8ee2e06..846b710 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -9,7 +9,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: dart-lang/setup-dart@v1 + - uses: subosito/flutter-action@v2 + with: + channel: 'stable' - run: dart pub global activate webdev && webdev build - uses: FirebaseExtended/action-hosting-deploy@v0 with: diff --git a/README.md b/README.md index d9bd808..8c37174 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,6 @@ or you use devtools [Debugging Web Info](https://dart.dev/web/debugging) ## Build and Deploy ```sh -jasper build +webdev build firebase deploy ```