hkirat / leetcode-clone

https://leetcode-clone-topaz.vercel.app
69 stars 77 forks source link

Create a CI/CD pipeline to deploy to firebase #30

Open hkirat opened 8 months ago

hkirat commented 8 months ago

the backend

hkirat commented 8 months ago

Assume secrets can be put in github secrets

initeshjain commented 8 months ago

Source: https://github.com/marketplace/actions/deploy-to-firebase-cloud-functions

.github/workflows/firebase-deploy.yml

Add 2 secrets: FIREBASE_TOKEN and FIREBASE_PROJECT_ID

name: Deploy on Firebase
on:
  push:
    branches:
      - master
jobs:
  main:
    name: Deploy to Firebase
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: jsryudev/deploy-firebase-functions@v0.0.2
      env:
        FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
        FIREBASE_PROJECT: ${{ secrets.FIREBASE_PROJECT_ID }}
Maniteja0126 commented 3 months ago

Hey @hkirat , I've raised a PR for setting up the CI/CD pipeline for Firebase deployment #50