Skip to content

Commit

Permalink
Set up firebase hosting
Browse files Browse the repository at this point in the history
  • Loading branch information
miksto committed Mar 10, 2024
1 parent 96c8a16 commit c658da6
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 37 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/cd-aws-s3.yaml

This file was deleted.

16 changes: 13 additions & 3 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,19 @@ jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
- uses: actions/checkout@v4

- name: Install deps
run: npm install

- name: Prepare Public folder
run: npm run build
env:
NODE_ENV: production
REACT_APP_IMAGE_BASE_URL: ${{ vars.REACT_APP_IMAGE_BASE_URL }}

- name: Deploy
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_SEISMOMETER_8219F }}'
Expand Down
16 changes: 13 additions & 3 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,19 @@ jobs:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
- uses: actions/checkout@v4

- name: Install deps
run: npm install

- name: Prepare Public folder
run: npm run build
env:
NODE_ENV: production
REACT_APP_IMAGE_BASE_URL: ${{ vars.REACT_APP_IMAGE_BASE_URL }}

- name: Deploy
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_SEISMOMETER_8219F }}'
Expand Down

0 comments on commit c658da6

Please sign in to comment.