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 5fe71bf
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 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,6 @@ 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
- run: |
# Firebase CLIでHostingとFunctionsをデプロイ
npx firebase-tools deploy --only hosting,functions --project todo-real-c28fa --token "${{ secrets.FIREBASE_SERVICE_ACCOUNT_TODO_REAL_C28FA }}"

0 comments on commit 5fe71bf

Please sign in to comment.