Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
chore: staging link config (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzanardo authored Dec 1, 2023
1 parent 485cbfa commit 677a7b6
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .firebaserc
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@
"hosting": {
"app_dev": [
"dash-ai-search-dev"
],
"app_staging": [
"dash-ai-search-staging"
]
}
}
},
"etags": {}
}
}
25 changes: 25 additions & 0 deletions .github/workflows/deploy_app_staging.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: deploy_app_production

on:
workflow_dispatch:

jobs:
deploy-dev:
runs-on: ubuntu-latest
name: Deploy App Production
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.16.2"
channel: "stable"
- run: flutter packages get
- run: flutter build web -t lib/main_development.dart --dart-define SHARING_ENABLED=true
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_DASH_AI_SEARCH_DEVELOPMENT }}"
projectId: dash-ai-search-development
target: app_staging
expires: 30d
channelId: live
49 changes: 49 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,55 @@
}
],
"predeploy": []
},
{
"target": "app_staging",
"public": "build/web",
"cleanUrls": true,
"trailingSlash": false,
"ignore": [
".firebase",
"firebase.json",
"functions/node_modules",
"functions/src",
"__/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
],
"headers": [
{
"source": "**/*.@(eot|otf|ttf|ttc|woff|font.css)",
"headers": [
{
"key": "Access-Control-Allow-Origin",
"value": "*"
}
]
},
{
"source": "**/*.@(jpg|jpeg|gif|png)",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=3600"
}
]
},
{
"source": "**",
"headers": [
{
"key": "Cache-Control",
"value": "no-cache, no-store, must-revalidate"
}
]
}
],
"predeploy": []
}
]
}

0 comments on commit 677a7b6

Please sign in to comment.