Skip to content

Commit

Permalink
feat: add Firebase configuration to GitHub and fix docs CI artifact path
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Nov 29, 2019
1 parent 695e7b6 commit 4d6e8b6
Show file tree
Hide file tree
Showing 10 changed files with 128 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
uses: actions/upload-artifact@master
with:
name: docs
path: docs
path: docs/dist
deploy:
name: Deploy
needs: build
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ UserInterfaceState.xcuserstate
lib/

.firebase/
firebase.json
.firebaserc

.terraform

Expand Down
6 changes: 6 additions & 0 deletions cloud/.firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"projects": {
"default": "deckdeckgo-studio-prod",
"staging": "deckdeckgo-studio-beta"
}
}
8 changes: 8 additions & 0 deletions cloud/firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"functions": {
"predeploy": [
"npm --prefix \"$RESOURCE_DIR\" run lint",
"npm --prefix \"$RESOURCE_DIR\" run build"
]
}
}
5 changes: 5 additions & 0 deletions docs/.firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "deckdeckgo-docs"
}
}
29 changes: 29 additions & 0 deletions docs/firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"hosting": {
"public": "www",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
],
"headers": [{
"source" : "sw.js",
"headers" : [{
"key" : "Cache-Control",
"value" : "public,max-age=0,must-revalidate"
}]
},{
"source" : "/",
"headers" : [{
"key" : "Cache-Control",
"value" : "public,max-age=0,must-revalidate"
}]
}]
}
}
6 changes: 6 additions & 0 deletions remote/.firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"projects": {
"default": "deckdeckgo-app",
"staging": "deckdeckgo-app-beta"
}
}
29 changes: 29 additions & 0 deletions remote/firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"hosting": {
"public": "www",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
],
"headers": [{
"source" : "sw.js",
"headers" : [{
"key" : "Cache-Control",
"value" : "public,max-age=0,must-revalidate"
}]
},{
"source" : "/",
"headers" : [{
"key" : "Cache-Control",
"value" : "public,max-age=0,must-revalidate"
}]
}]
}
}
6 changes: 6 additions & 0 deletions studio/.firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"projects": {
"default": "deckdeckgo-studio-prod",
"staging": "deckdeckgo-studio-beta"
}
}
38 changes: 38 additions & 0 deletions studio/firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"hosting": {
"public": "www",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
],
"headers": [{
"source" : "sw.js",
"headers" : [{
"key" : "Cache-Control",
"value" : "public,max-age=0,must-revalidate"
}]
},{
"source" : "/",
"headers" : [{
"key" : "Cache-Control",
"value" : "public,max-age=0,must-revalidate"
}]
},
{
"source": "assets/icons/**/*",
"headers": [
{
"key": "Access-Control-Allow-Origin",
"value": "*"
}
]
}]
}
}

0 comments on commit 4d6e8b6

Please sign in to comment.