Skip to content

Commit

Permalink
merge時にfunctionsもデプロイするように変更
Browse files Browse the repository at this point in the history
  • Loading branch information
MurakawaTakuya committed Nov 6, 2024
1 parent 90dffc1 commit 0797312
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on merge
name: Deploy to Firebase Hosting and Functions on merge
on:
push:
branches:
Expand All @@ -13,9 +13,10 @@ jobs:
- uses: actions/checkout@v4
- run: npm ci
- run: npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_TODO_REAL_C28FA }}
channelId: live
projectId: todo-real-c28fa

- 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 }}"

0 comments on commit 0797312

Please sign in to comment.