Skip to content

Commit

Permalink
Configure flutter web deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
cadivus committed Oct 15, 2024
1 parent 4f92561 commit 44878b4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/

0 comments on commit 44878b4

Please sign in to comment.