Skip to content

Commit

Permalink
feat(deploy): add automatic deploy to firebase hosting
Browse files Browse the repository at this point in the history
  • Loading branch information
ezpzlmnsqz1337 committed Aug 28, 2022
1 parent 6c85e79 commit e7bee44
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "big-robot-arm-ui"
}
}
14 changes: 14 additions & 0 deletions .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,17 @@ jobs:
name: coverage-reports
path: coverage
- run: echo "🍏 This job's status is ${{ job.status }}."

deploy:
runs-on: ubuntu-latest
needs: [build, test-unit]
steps:
- run: |
npm ci
npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BIG_ROBOT_ARM_UI }}'
channelId: live
projectId: big-robot-arm-ui
16 changes: 16 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"hosting": {
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}

0 comments on commit e7bee44

Please sign in to comment.