Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Basic Flutter CI
on:
pull_request:
branches:
- '**'
- 'main'

jobs:
build:
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Run tests
run: flutter test

# Build apk.
# Build web
- name: Build web
run: flutter build web --web-renderer html

32 changes: 32 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy to Firebase Hosting on create Tag

on:
pull_request:
branches:
- 'test'

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: '12.x'

- name: Setup Flutter
uses: subosito/flutter-action@v1
with:
flutter-version: '2.10.3'

- name: Build Web
run: flutter build web --web-renderer html

- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_PROJECT_ZERO_384AD }}'
projectId: project-zero-384ad