merge時にfunctionsもデプロイするように変更 #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 }}" |