Skip to content

Commit

Permalink
Merge pull request #12 from MurakawaTakuya/revert-11-feat/10-merge-de…
Browse files Browse the repository at this point in the history
…ploy-functions

Revert "merge時にfunctionsもデプロイするように変更"
  • Loading branch information
MurakawaTakuya authored Nov 6, 2024
2 parents dfbd89e + 88223cc commit 5e50677
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 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 and Functions on merge
name: Deploy to Firebase Hosting on merge
on:
push:
branches:
Expand Down Expand Up @@ -33,28 +33,9 @@ jobs:
REACT_APP_FIREBASE_APP_ID: ${{ secrets.REACT_APP_FIREBASE_APP_ID }}
REACT_APP_FIREBASE_MEASUREMENT_ID: ${{ secrets.REACT_APP_FIREBASE_MEASUREMENT_ID }}

# Firebase Hostingををデプロイ
- 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

# Cloud Functionsをデプロイ
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: "npm"
cache-dependency-path: functions/package-lock.json

- name: Install dependencies for functions
run: npm install -C functions

- name: Deploy to Firebase Functions
uses: w9jds/firebase-action@master
with:
args: deploy --only functions
env:
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}

0 comments on commit 5e50677

Please sign in to comment.