From 44878b48172e2cc39329d9c7bfd90ebb042c9338 Mon Sep 17 00:00:00 2001 From: Jonas Greifenhain Date: Mon, 7 Oct 2024 01:05:36 +0200 Subject: [PATCH] Configure flutter web deployments --- .github/workflows/firebase-hosting-pull-request.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index 70f844a..394bd64 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -13,11 +13,18 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: subosito/flutter-action@v2 + with: + channel: stable - run: (cd open_earable && flutter build web --dart-define=BUILD_COMMIT=$(git rev-parse --short HEAD) --dart-define=BUILD_BRANCH=$(git rev-parse --abbrev-ref HEAD)) - uses: FirebaseExtended/action-hosting-deploy@v0 + if: ${{ github.event_name == 'pull_request' }} + name: Deploy preview with: repoToken: ${{ secrets.GITHUB_TOKEN }} firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_OPEN_EARABLE_WEB }} projectId: open-earable-web + expires: 28d + entryPoint: open_earable/