Skip to content

Commit be96482

Browse files
committed
simplify action
1 parent 49f764c commit be96482

File tree

1 file changed

+7
-21
lines changed

1 file changed

+7
-21
lines changed

.github/workflows/firebase-deploy.yml

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,10 @@ on:
1313
jobs:
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

0 commit comments

Comments
 (0)