Skip to content

Commit

Permalink
feat: re-enable automatically firebase hosting deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianbormann committed Aug 31, 2023
1 parent 0e915c0 commit fb916ea
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "walkinwallet"
}
}
15 changes: 5 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,9 @@ jobs:
- name: 🔨 Download dependencies and build hosting
run: npm ci && npm run build

- name: 🚀 Deploy hosting
run: npx firebase-tools deploy --token "$FIREBASE_TOKEN" --only hosting
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}

- uses: FirebaseExtended/action-hosting-deploy@v0
- name: 🚀 Deploy to Firebase hosting
uses: w9jds/firebase-action@master
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_WALKINWALLET }}'
projectId: walkinwallet
channelId: live
args: deploy --only hosting
env:
GCP_SA_KEY: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_WALKINWALLET }}
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,4 @@ yarn-error.log*
.env

.firebase/
.firebaserc
firebase.json
*.log
16 changes: 16 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"hosting": {
"public": "build",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}

0 comments on commit fb916ea

Please sign in to comment.