-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Devon Shigaki
committed
Sep 9, 2024
1 parent
2450b7d
commit f7f498d
Showing
1 changed file
with
14 additions
and
11 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
name: Firebase Functions CI/CD | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- firebase-cloud-project | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
- name: Install Firebase Tools | ||
run: npm install -g firebase-tools | ||
- name: Authenticate with Firebase | ||
run: firebase login:ci --no-localhost --token ${{ secrets.FIREBASE_TOKEN }} | ||
- name: Install Dependencies | ||
run: npm install | ||
- name: Deploy Firebase Functions | ||
run: firebase deploy --only functions | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Deploy to Firebase | ||
env: | ||
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | ||
run: firebase deploy --only functions --token "$FIREBASE_TOKEN" |