-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 865 Bytes
/
node.js.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Deploy to Firebase
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install Firebase CLI
run: npm install -g firebase-tools
- name: Set up Firebase service account
run: |
echo "${{ secrets.FIREBASE_SERVICE_ACCOUNT_KEY }}" > "${HOME}/firebase-service-account.json"
shell: bash
- name: Deploy to Firebase
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_OFFBRANDSPOTIFYDB }}
channelId: live
projectId: offbrandspotifydb