File tree Expand file tree Collapse file tree 1 file changed +7
-21
lines changed
Expand file tree Collapse file tree 1 file changed +7
-21
lines changed Original file line number Diff line number Diff line change 1313jobs :
1414 build-and-deploy :
1515 runs-on : ubuntu-latest
16- env :
17- SERVICE_ACCOUNT_KEY : ${{ secrets.FIREBASE_SERVICE_ACCOUNT_THINGS_TO_COMPLETE }}
18- PROJECT_ID : things-to-complete
1916
2017 steps :
2118 - uses : actions/checkout@v3
2219
23- # - name: Setup Node.js
24- # uses: actions/setup-node@v4
25- # with:
26- # node-version: '20'
27- # cache: 'pnpm'
28- # cache-dependency-path: pnpm-lock.yaml
29-
3020 - name : Install pnpm
3121 run : npm install -g pnpm
3222
@@ -36,25 +26,21 @@ jobs:
3626 - name : Install Frontend dependencies
3727 run : pnpm install
3828
29+ - uses : ' google-github-actions/auth@v2'
30+ with :
31+ credentials_json : ${{ secrets.FIREBASE_SERVICE_ACCOUNT_THINGS_TO_COMPLETE }}
32+
3933 - name : Build Frontend
4034 run : pnpm run build
4135
4236 - name : Deploy Frontend to Firebase Hosting
43- uses : FirebaseExtended/action-hosting-deploy@v0
44- with :
45- repoToken : ${{ secrets.GITHUB_TOKEN }}
46- firebaseServiceAccount : ${{ env.SERVICE_ACCOUNT_KEY }}
47- channelId : live
48- projectId : ${{ env.PROJECT_ID }}
37+ run : |
38+ firebase deploy -f --only hosting --project things-to-complete
4939
5040 - name : Install Functions dependencies
5141 run : npm install
5242 working-directory : ./functions
5343
54- - uses : ' google-github-actions/auth@v2'
55- with :
56- credentials_json : ${{ env.SERVICE_ACCOUNT_KEY }}
57-
5844 - name : Deploy functions
5945 run : |
60- firebase deploy -f --only functions --project ${{ env.PROJECT_ID }}
46+ firebase deploy -f --only functions --project things-to-complete
You can’t perform that action at this time.
0 commit comments