Skip to content

Deploy to Firebase Hosting on release #16

Deploy to Firebase Hosting on release

Deploy to Firebase Hosting on release #16

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: firebase-hosting-deploy
run-name: Deploy to Firebase Hosting on release
on:
release:
types:
- released
jobs:
build_and_deploy_hosting:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build artifact
run: npm ci && npm run build
- name: Deploy to Firebase Hosting live channel
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_AUTOAQUAPONICS_V2 }}'
channelId: live
projectId: autoaquaponics-v2
deploy_firestore:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Deploy rules and indexes to Firebase Firestore
uses: w9jds/firebase-action@master
with:
args: deploy --only firestore
env:
GCP_SA_KEY: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_AUTOAQUAPONICS_V2 }}