-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ee7af4
commit 888f800
Showing
3 changed files
with
24 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,40 @@ | ||
name: 'Flutter Setup' | ||
description: 'Sets up Flutter environment with Firebase configuration' | ||
inputs: | ||
firebase-options: | ||
description: 'Firebase options for configuration' | ||
firebase-token: | ||
description: 'Firebase token' | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Cache Flutter and Dart dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.pub-cache | ||
~/.flutter | ||
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pub- | ||
steps: | ||
- name: Setup Flutter | ||
uses: subosito/flutter-action@v2 | ||
uses: flutter-actions/setup-flutter@v3 | ||
with: | ||
channel: stable | ||
version: latest | ||
cache: true | ||
cache-sdk: true | ||
cache-key: true | ||
|
||
- name: Disable cli animation and analytics | ||
shell: bash | ||
run: | | ||
flutter config --no-cli-animations | ||
flutter config --no-analytics | ||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Setup firebase tools | ||
shell: bash | ||
run: sudo npm install -g firebase-tools | ||
|
||
- name: Configure firebase options | ||
shell: bash | ||
run: echo "${{ inputs.firebase-options }}" > ./lib/firebase_options.dart | ||
run: | | ||
dart pub global activate flutterfire_cli 1.0.1-dev.4 | ||
flutterfire configure -p authentication-699e4 --android-package-name=com.codeTrenchers.evBookingOperators --platforms="android" --yes | ||
env: | ||
FIREBASE_TOKEN: ${{ inputs.firebase-token }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters