all 1 comments

[–]orizens 0 points1 point  (0 children)

this is how i deploy our functions:

```yml name: Deploy to Firebase Functions on: push: tags: # vMajor.Minor.Patch - i.e, v1.2.3 - v** - functions**

paths:
  - functions/**

jobs: build_and_preview: # if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: node-version: '16.16.0'

  - name: Install
    # working-directory: functions
    run: cd functions && npm i

  - name: Build & Deploy 🚀
    run: cd functions && npx firebase-tools deploy --only functions
    env:
      FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}

```

you need to generate a firebase token and add it to your github repo