Skip to content

Deploy preview to Firebase Hosting on PR to main #10

Deploy preview to Firebase Hosting on PR to main

Deploy preview to Firebase Hosting on PR to main #10

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: firebase-hosting-pr-main
run-name: Deploy preview to Firebase Hosting on PR to main
on:
pull_request:
branches:
- main
jobs:
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
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 preview channel
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_AUTOAQUAPONICS_V2 }}'
projectId: autoaquaponics-v2