-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.07 KB
/
firebase-deploy.yml
File metadata and controls
47 lines (38 loc) · 1.07 KB
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
37
38
39
40
41
42
43
44
45
46
47
name: Deploy to Firebase Hosting
on:
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# - name: Setup Node.js
# uses: actions/setup-node@v4
# with:
# node-version: '20'
# cache: 'pnpm'
# cache-dependency-path: pnpm-lock.yaml
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm run build
- name: Login to Firebase
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_THINGS_TO_COMPLETE }}"
channelId: live
projectId: things-to-complete
# - name: Deploy to Firebase
# run: firebase deploy --only hosting --non-interactive
# env:
# FIREBASE_TOKEN: "${{ secrets.FIREBASE_TOKEN }}"