Skip to content

Instantly share code, notes, and snippets.

@chinmay-sh
Last active September 18, 2020 09:12
Show Gist options
  • Save chinmay-sh/7d39b9532634a7bf712cb38657126a0a to your computer and use it in GitHub Desktop.
Save chinmay-sh/7d39b9532634a7bf712cb38657126a0a to your computer and use it in GitHub Desktop.
firebase-deploy-hosting-react
name: PropxFirebase
on:
push:
branches:
- master
jobs:
firebase-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set-up Node
uses: actions/setup-node@v1
with:
node-version: "12.x"
- run: npm install
working-directory: ./client
- run: npm run build
working-directory: ./client
- name: Deploy to Firebase
uses: w9jds/firebase-action@v1.5.0
with:
args: deploy --only hosting
env:
FIREBASE_TOKEN: ${{ secrets.PROPX_FIREBASE_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment