Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add workflow to deploy app in development env #22

Merged
merged 4 commits into from
Mar 5, 2024
Merged
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
15 changes: 15 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"projects": {
"default": "io-crossword-dev"
},
"targets": {
"io-crossword-dev": {
"hosting": {
"app_dev": [
"e7b2896c65fabc0480edc6c0e"
]
}
}
},
"etags": {}
}
28 changes: 28 additions & 0 deletions .github/workflows/deploy_app_dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: deploy_app_dev

on:
push:
branches:
- main

jobs:
deploy-dev:
runs-on: ubuntu-latest
name: Deploy App Development
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- run: flutter packages get
- run: flutter build web --web-renderer canvaskit -t lib/main_development.dart


- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_DEV }}"
projectId: io-crossword-dev
target: app_dev
expires: 30d
channelId: live
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@ coverage/
# Submodules
packages/**/pubspec.lock

# Web related
lib/generated_plugin_registrant.dart

jsgalarraga marked this conversation as resolved.
Show resolved Hide resolved
# Symbolication related
app.*.symbols

Expand All @@ -110,3 +107,6 @@ app.*.map.json
!.idea/codeStyles/
!.idea/dictionaries/
!.idea/runConfigurations/

# Firebase related
.firebase/
14 changes: 14 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"hosting": [
{
"target": "app_dev",
"public": "build/web",
"ignore": [
".firebase",
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
]
}
Empty file modified scripts/start_local_api.sh
100644 → 100755
Empty file.
Loading