Skip to content

merge時にfunctionsもデプロイするように変更 #17

merge時にfunctionsもデプロイするように変更

merge時にfunctionsもデプロイするように変更 #17

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting and Functions on merge
on:
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci
- run: npm run build
- name: Install Firebase CLI
run: npm install -g firebase-tools@latest
- name: Deploy to Firebase Hosting and Functions
run: |
firebase deploy --only hosting,functions --project todo-real-c28fa --token "${{ secrets.FIREBASE_SERVICE_ACCOUNT_TODO_REAL_C28FA }}"