Skip to content

Commit

Permalink
Use firebase hosting
Browse files Browse the repository at this point in the history
  • Loading branch information
sbutz committed Oct 19, 2023
1 parent 6eaa7a2 commit f65dc93
Show file tree
Hide file tree
Showing 6 changed files with 2,243 additions and 189 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/client-deploy-on-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on merge
'on':
push:
branches:
- master
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_POOLSCORE_1973 }}'
channelId: live
projectId: poolscore-1973
18 changes: 17 additions & 1 deletion .github/workflows/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,20 @@ jobs:
working-directory: ${{env.working-directory}}
- name: Run Tests
run: npm run test
working-directory: ${{env.working-directory}}
working-directory: ${{env.working-directory}}
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
runs-on: ubuntu-latest
env:
working-directory: ./client
steps:
- uses: actions/checkout@v3
- name: 'Install Dependencies and build'
run: npm ci && npm run build
working-directory: ${{env.working-directory}}
- name: Deploy Preview
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_POOLSCORE_1973 }}'
projectId: poolscore-1973
Loading

0 comments on commit f65dc93

Please sign in to comment.