Skip to content

Commit

Permalink
chore: add workflow to deploy app in development env (#22)
Browse files Browse the repository at this point in the history
* feat: add execution permissions

* feat: initialize firebase hosting

* feat: first deploy updated gitignore

* chore: add deploy app dev workflow
  • Loading branch information
jsgalarraga authored Mar 5, 2024
1 parent b90f444 commit df89b89
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 3 deletions.
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

# 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.

0 comments on commit df89b89

Please sign in to comment.