Skip to content

Update firebase-hosting-deploy.yml #6

Update firebase-hosting-deploy.yml

Update firebase-hosting-deploy.yml #6

name: Deploy to Firebase Hosting
on:
push:
branches:
- cloudflare # Change this to your desired branch
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install Firebase CLI
run: npm install -g firebase-tools
# - name: Authenticate with Firebase
# run: firebase login:ci --token "$FIREBASE_TOKEN"
# env:
# FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
- name: Deploy to Firebase Hosting
run: firebase deploy --only hosting --token "$FIREBASE_TOKEN"
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}